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/LootCommand.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/LootCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/LootCommand.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/LootCommand.java b/src/main/java/me/Danker/commands/LootCommand.java index c63779e..b69f6fa 100644 --- a/src/main/java/me/Danker/commands/LootCommand.java +++ b/src/main/java/me/Danker/commands/LootCommand.java @@ -250,7 +250,7 @@ public class LootCommand extends CommandBase { @Override public String getCommandUsage(ICommandSender arg0) { - return getCommandName() + " <zombie/spider/wolf/fishing/catacombs> [winter/festival/f(1-5)/session]"; + return "/" + getCommandName() + " <zombie/spider/wolf/fishing/catacombs> [winter/festival/f(1-5)/session]"; } @Override @@ -277,7 +277,7 @@ public class LootCommand 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; } @@ -766,7 +766,7 @@ public class LootCommand extends CommandBase { player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /loot catacombs <f1/f2/f3/f4/f5>")); } } else { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /" + getCommandUsage(arg0))); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); } } |