From f4e735eda468596e4f910a8ab9a82f2ffba12fdd Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Thu, 30 Jan 2014 14:23:50 -0600 Subject: [PATCH] Fix the jail stop and also add some alternatives. --- .../java/com/graywolf336/jail/command/JailHandler.java | 2 ++ .../jail/command/subcommands/JailStopCommand.java | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/command/JailHandler.java b/src/main/java/com/graywolf336/jail/command/JailHandler.java index 23c9927..c835661 100644 --- a/src/main/java/com/graywolf336/jail/command/JailHandler.java +++ b/src/main/java/com/graywolf336/jail/command/JailHandler.java @@ -176,6 +176,7 @@ public class JailHandler { //Puts the commands in the HashMap addCmds.put("list", new JailList()); + addCmds.put("l", new JailList()); addCmds.put("mute", new Mute()); addCmds.put("m", new Mute()); addCmds.put("reload", new Reload()); @@ -187,6 +188,7 @@ public class JailHandler { addCmds.put("teleout", new TeleOut()); addCmds.put("teleportout", new TeleOut()); addCmds.put("version", new Version()); + addCmds.put("ver", new Version()); addCmds.put("v", new Version()); } diff --git a/src/main/java/com/graywolf336/jail/command/subcommands/JailStopCommand.java b/src/main/java/com/graywolf336/jail/command/subcommands/JailStopCommand.java index c822c2c..f935918 100644 --- a/src/main/java/com/graywolf336/jail/command/subcommands/JailStopCommand.java +++ b/src/main/java/com/graywolf336/jail/command/subcommands/JailStopCommand.java @@ -17,14 +17,22 @@ import com.graywolf336.jail.command.CommandInfo; ) public class JailStopCommand implements Command { public boolean execute(JailManager jm, CommandSender sender, String... args) { + boolean nothing = true; + if(jm.isCreatingACell(sender.getName())) { jm.removeCellCreationPlayer(sender.getName()); sender.sendMessage(ChatColor.RED + "You have stopped creating cells."); + nothing = false; } if(jm.isCreatingAJail(sender.getName())) { jm.removeJailCreationPlayer(sender.getName()); sender.sendMessage(ChatColor.RED + "You have stopped creating a jail."); + nothing = false; + } + + if(nothing) { + sender.sendMessage(ChatColor.RED + "You've stopped creating....nothing."); } return true;