aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/SetkeyCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-09-22 16:06:46 -0400
committerbowser0000 <bowser0000@gmail.com>2020-09-22 16:06:46 -0400
commitaaead3c4f64ababbe60f9788714658fd81b67a3e (patch)
tree61627a9d86662e64f4adf46df0864eee2ff52dc4 /src/main/java/me/Danker/commands/SetkeyCommand.java
parentbedf3448667d59e4ba0f54b6ddb77461793e9349 (diff)
downloadSkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.tar.gz
SkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.tar.bz2
SkyblockMod-aaead3c4f64ababbe60f9788714658fd81b67a3e.zip
Start using getCommandUsage()
Diffstat (limited to 'src/main/java/me/Danker/commands/SetkeyCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/SetkeyCommand.java4
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;
}