Fixed /me to work, confirmed to work!

This commit is contained in:
nossr50 2010-12-01 07:50:00 -08:00
parent 91a9e1350b
commit 58c1c95daf
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}
//=====================================================================