We need to set cmdSuccess accordingly.

This commit is contained in:
EvilSeph
2011-02-18 21:30:19 -05:00
parent c6d4b1c3c6
commit 25271d9126

View File

@@ -16,7 +16,7 @@ public final class PluginCommand extends Command {
boolean cmdSuccess = false;
try {
owningPlugin.onCommand(sender, this, commandLabel, args);
cmdSuccess = owningPlugin.onCommand(sender, this, commandLabel, args);
} catch (Throwable ex) {
throw new CommandException("Unhandled exception executing command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName(), ex);
}