diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-07-13 17:42:57 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-07-13 17:42:57 -0400 |
commit | 8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2 (patch) | |
tree | 4ae7cd5ff26139a3fb0f390cbe359fa210337f7b /me/Danker/commands/DisplayCommand.java | |
parent | ec0334bfb60226e5bd0fb987babbe16384bd5ae0 (diff) | |
download | SkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.tar.gz SkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.tar.bz2 SkyblockMod-8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2.zip |
/move command, colours and slayer fixv1.4.1
Added /move command to move text displays. Add colour to messages and error messages in chat. Fixed slayer drops not being tracked.
Diffstat (limited to 'me/Danker/commands/DisplayCommand.java')
-rw-r--r-- | me/Danker/commands/DisplayCommand.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/me/Danker/commands/DisplayCommand.java b/me/Danker/commands/DisplayCommand.java index 534ce16..09d7c0f 100644 --- a/me/Danker/commands/DisplayCommand.java +++ b/me/Danker/commands/DisplayCommand.java @@ -6,6 +6,7 @@ import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ChatComponentText; +import net.minecraft.util.EnumChatFormatting; public class DisplayCommand extends CommandBase { public static String display; @@ -30,7 +31,7 @@ public class DisplayCommand extends CommandBase { final EntityPlayer player = (EntityPlayer) arg0; if (arg1.length == 0) { - player.addChatMessage(new ChatComponentText("Usage: /display [zombie/spider/wolf/off]")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display [zombie/spider/wolf/off]")); return; } @@ -45,10 +46,10 @@ public class DisplayCommand extends CommandBase { } else if (arg1[0].equalsIgnoreCase("off")) { display = "off"; } else { - player.addChatMessage(new ChatComponentText("Usage: /display [zombie/spider/wolf/off]")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display [zombie/spider/wolf/off]")); return; } - player.addChatMessage(new ChatComponentText("Display set to " + display + ".")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Display set to " + EnumChatFormatting.DARK_GREEN + display + EnumChatFormatting.GREEN + ".")); cf.writeStringConfig("misc", "display", display); } |