Browse Source

Fixed /me to work, confirmed to work!

nossr50 14 years ago
parent
commit
58c1c95daf
2 changed files with 6 additions and 3 deletions
  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
 	//Output:	boolean: If this feature is enabled
 	//Use:		/me but with our custom colors applied
 	//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)
             for(String str: msg)
 				gmsg(str);
 				gmsg(str);
             return true;
             return true;

+ 3 - 1
vMinecraftCommands.java

@@ -55,7 +55,9 @@ public class vMinecraftCommands{
 	//=====================================================================
 	//=====================================================================
     public static int me(Player player, String[] args)
     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;
         return EXIT_SUCCESS;
     }
     }
 	//=====================================================================
 	//=====================================================================