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/ScaleCommand.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/ScaleCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/ScaleCommand.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/ScaleCommand.java b/src/main/java/me/Danker/commands/ScaleCommand.java index 7b56b6d..cd53add 100644 --- a/src/main/java/me/Danker/commands/ScaleCommand.java +++ b/src/main/java/me/Danker/commands/ScaleCommand.java @@ -24,7 +24,7 @@ public class ScaleCommand extends CommandBase { @Override public String getCommandUsage(ICommandSender arg0) { - return getCommandName() + " <coords/display/dungeontimer> <size (0.1 - 10)>"; + return "/" + getCommandName() + " <coords/display/dungeontimer> <size (0.1 - 10)>"; } @Override @@ -45,7 +45,7 @@ public class ScaleCommand extends CommandBase { final EntityPlayer player = (EntityPlayer) arg0; if (arg1.length < 2) { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /scale <coords/display/dungeontimer> <size (0.1 - 10)>")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); return; } @@ -68,7 +68,7 @@ public class ScaleCommand extends CommandBase { ConfigHandler.writeDoubleConfig("scales", "dungeonTimerScale", dungeonTimerScale); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Dungeon timer has been scaled to " + EnumChatFormatting.DARK_GREEN + dungeonTimerScale + "x")); } else { - player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /scale <coords/display/dungeontimer> <size (0.1 - 10)>")); + player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0))); } } |