浏览代码

Fixed /me to work, confirmed to work!

nossr50 14 年之前
父节点
当前提交
58c1c95daf
共有 2 个文件被更改,包括 6 次插入3 次删除
  1. 3 2
      vMinecraftChat.java
  2. 3 1
      vMinecraftCommands.java

+ 3 - 2
vMinecraftChat.java

@@ -368,9 +368,10 @@ public class vMinecraftChat {
 	//Output:	boolean: If this feature is enabled
 	//Use:		/me but with our custom colors applied
 	//=====================================================================
-        public static boolean emote(Player player, String[] message)
+        public static boolean emote(Player player, String message)
         {
-            String[] msg = wordWrap("* " + getName(player) + Colors.White + message);
+            String temp = message.toString();
+            String[] msg = wordWrap("* " + getName(player) + " " + Colors.White + temp);
             for(String str: msg)
 				gmsg(str);
             return true;

+ 3 - 1
vMinecraftCommands.java

@@ -55,7 +55,9 @@ public class vMinecraftCommands{
 	//=====================================================================
     public static int me(Player player, String[] args)
     {
-        vMinecraftChat.emote(player, args);
+        String str = etc.combineSplit(0, args, " ");
+        if (args.length < 1) {return EXIT_FAIL;}
+        vMinecraftChat.emote(player, str);
         return EXIT_SUCCESS;
     }
 	//=====================================================================