diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-09-22 16:06:46 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-09-22 16:06:46 -0400 |
commit | aaead3c4f64ababbe60f9788714658fd81b67a3e (patch) | |
tree | 61627a9d86662e64f4adf46df0864eee2ff52dc4 /src/main/java/me/Danker/commands/DisplayCommand.java | |
parent | bedf3448667d59e4ba0f54b6ddb77461793e9349 (diff) | |
download | SkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.tar.gz SkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.tar.bz2 SkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.zip |
Start using getCommandUsage()
Diffstat (limited to 'src/main/java/me/Danker/commands/DisplayCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/DisplayCommand.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/DisplayCommand.java b/src/main/java/me/Danker/commands/DisplayCommand.java index b571e1f..a0b49d6 100644 --- a/src/main/java/me/Danker/commands/DisplayCommand.java +++ b/src/main/java/me/Danker/commands/DisplayCommand.java @@ -21,7 +21,7 @@ public class DisplayCommand extends CommandBase { @Override public String getCommandUsage(ICommandSender arg0) { - return getCommandName() + " <zombie/spider/wolf/fishing/catacombs/off> [winter/festival/session/f(1-5)]"; + return "/" + getCommandName() + " <zombie/spider/wolf/fishing/catacombs/off> [winter/festival/session/f(1-5)]"; } @Override @@ -48,7 +48,7 @@ public class DisplayCommand extends CommandBase { final EntityPlayer player = (EntityPlayer) arg0; if (arg1.length == 0) { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /" + getCommandUsage(arg0))); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); return; } @@ -137,7 +137,7 @@ public class DisplayCommand extends CommandBase { } else if (arg1[0].equalsIgnoreCase("off")) { display = "off"; } else { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /" + getCommandUsage(arg0))); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); return; } player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Display set to " + EnumChatFormatting.DARK_GREEN + display + EnumChatFormatting.GREEN + ".")); |