aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/MoveCommand.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/MoveCommand.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/MoveCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/MoveCommand.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/commands/MoveCommand.java b/src/main/java/me/Danker/commands/MoveCommand.java
index 24396ff..bbc62b8 100644
--- a/src/main/java/me/Danker/commands/MoveCommand.java
+++ b/src/main/java/me/Danker/commands/MoveCommand.java
@@ -24,7 +24,7 @@ public class MoveCommand extends CommandBase {
@Override
public String getCommandUsage(ICommandSender arg0) {
- return getCommandName() + " <coords/display/dungeontimer> <x> <y>";
+ return "/" + getCommandName() + " <coords/display/dungeontimer> <x> <y>";
}
@Override
@@ -46,7 +46,7 @@ public class MoveCommand extends CommandBase {
final ConfigHandler cf = new ConfigHandler();
if (arg1.length < 2) {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /move <coords/display/dungeontimer> <x> <y>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
return;
}
@@ -69,7 +69,7 @@ public class MoveCommand extends CommandBase {
cf.writeIntConfig("locations", "dungeonTimerY", dungeonTimerXY[1]);
player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Dungeon timer has been moved to " + EnumChatFormatting.DARK_GREEN + arg1[1] + ", " + arg1[2]));
} else {
- player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: /move <coords/display/dungeontimer> <x> <y>"));
+ player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Usage: " + getCommandUsage(arg0)));
}
}