aboutsummaryrefslogtreecommitdiff
path: root/me/Danker/commands/DisplayCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-07-30 19:27:01 -0400
committerbowser0000 <bowser0000@gmail.com>2020-07-30 19:27:01 -0400
commit3a3cd409f16953d9b7392482d70f2e09f3cffb28 (patch)
tree889bfc57851d1b5a22bfda2246c32aa8b7901001 /me/Danker/commands/DisplayCommand.java
parent107b017bbfb82098bb65597eed99e12136526fa4 (diff)
downloadSkyblockMod-3a3cd409f16953d9b7392482d70f2e09f3cffb28.tar.gz
SkyblockMod-3a3cd409f16953d9b7392482d70f2e09f3cffb28.tar.bz2
SkyblockMod-3a3cd409f16953d9b7392482d70f2e09f3cffb28.zip
Add fishing tracker
Diffstat (limited to 'me/Danker/commands/DisplayCommand.java')
-rw-r--r--me/Danker/commands/DisplayCommand.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/me/Danker/commands/DisplayCommand.java b/me/Danker/commands/DisplayCommand.java
index 998aead..e32f9d2 100644
--- a/me/Danker/commands/DisplayCommand.java
+++ b/me/Danker/commands/DisplayCommand.java
@@ -18,7 +18,7 @@ public class DisplayCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return getCommandName() + " <zombie/spider/wolf/off>";
+ return getCommandName() + " <zombie/spider/wolf/fishing/off> [winter]";
}
@Override
@@ -31,7 +31,7 @@ public class DisplayCommand extends CommandBase {
final EntityPlayer player = (EntityPlayer) arg0;
if (arg1.length == 0) {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display <zombie/spider/wolf/off>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display <zombie/spider/wolf/fishing/off> [winter]"));
return;
}
@@ -45,8 +45,14 @@ public class DisplayCommand extends CommandBase {
display = "zombie";
} else if (arg1[0].equalsIgnoreCase("off")) {
display = "off";
+ } else if (arg1[0].equalsIgnoreCase("fishing")) {
+ if (arg1.length > 1 && arg1[1].equalsIgnoreCase("winter")) {
+ display = "fishingwinter";
+ } else {
+ display = "fishing";
+ }
} else {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display <zombie/spider/wolf/off>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /display <zombie/spider/wolf/fishing/off> [winter]"));
return;
}
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Display set to " + EnumChatFormatting.DARK_GREEN + display + EnumChatFormatting.GREEN + "."));