Fixed handling of CommandExceptions thrown by commands.

Dieser Commit ist enthalten in:
sk89q 2011-02-25 08:59:10 -08:00
Ursprung 0ffe0689d1
Commit c58f8f4155

Datei anzeigen

@ -346,6 +346,10 @@ public abstract class CommandsManager<T> {
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
if (e.getCause() instanceof CommandException) {
throw (CommandException) e.getCause();
}
throw new WrappedCommandException(e.getCause());
}
}