aboutsummaryrefslogtreecommitdiff
path: root/me/Danker/commands/DisplayCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-07-13 17:42:57 -0400
committerbowser0000 <bowser0000@gmail.com>2020-07-13 17:42:57 -0400
commit8ce07f5b4b4c7d8cef95dd613885e5219ce6a6a2 (patch)
tree4ae7cd5ff26139a3fb0f390cbe359fa210337f7b /me/Danker/commands/DisplayCommand.java
parentec0334bfb60226e5bd0fb987babbe16384bd5ae0 (diff)
downloadSkyblockMod-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.java7
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);
}