mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Fixed /me to work, confirmed to work!
This commit is contained in:
parent
91a9e1350b
commit
58c1c95daf
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user