Make the command execution throw an exception, and let's catch it.

This commit is contained in:
graywolf336
2014-01-21 11:22:26 -06:00
parent 9f34304fdb
commit 4c13948549
2 changed files with 9 additions and 3 deletions

View File

@@ -27,5 +27,5 @@ public interface Command {
* @param args The args, in an array
* @return True if the method handled it in any way, false if we should send the usage message.
*/
public boolean execute(JailManager jm, CommandSender sender, String... args);
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception;
}