diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-10-20 11:57:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 11:57:50 -0400 |
commit | 5c5ffdbd4379d4c5002cd42c297f90e631566006 (patch) | |
tree | 1f203e2c7506697efe5efc326d95567bd7e958a0 /src/main/java/me/Danker/commands/SetkeyCommand.java | |
parent | 20b405f59dcd92df1b4c3cd5b9ac353652ef4405 (diff) | |
parent | 1635fe604e6ca2d32d96409165fcc298f1c5b067 (diff) | |
download | SkyblockMod-5c5ffdbd4379d4c5002cd42c297f90e631566006.tar.gz SkyblockMod-5c5ffdbd4379d4c5002cd42c297f90e631566006.tar.bz2 SkyblockMod-5c5ffdbd4379d4c5002cd42c297f90e631566006.zip |
1.8v1.8
Merge pull request #22 from bowser0000/development
Diffstat (limited to 'src/main/java/me/Danker/commands/SetkeyCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/SetkeyCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/SetkeyCommand.java b/src/main/java/me/Danker/commands/SetkeyCommand.java index f68ff75..9fc5228 100644 --- a/src/main/java/me/Danker/commands/SetkeyCommand.java +++ b/src/main/java/me/Danker/commands/SetkeyCommand.java @@ -18,7 +18,7 @@ public class SetkeyCommand extends CommandBase implements ICommand { @Override public String getCommandUsage(ICommandSender arg0) { - return getCommandName() + " <key>"; + return "/" + getCommandName() + " <key>"; } @Override @@ -31,7 +31,7 @@ public class SetkeyCommand extends CommandBase implements ICommand { final EntityPlayer player = (EntityPlayer)arg0; if (arg1.length == 0) { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /setkey <key>")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); return; } |