-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
Sometimes I need to know the successful count of command execution, such as /testfor, so I suggest add a executeSuccess besides a normal execute method.
(In vanilla command wrapper)
@Override public int executeSuccess(CommandSender sender, String commandLabel, String[] args) { if (!testPermission(sender)) return 0; ICommandListener icommandlistener = getListener(sender); return dispatchVanillaCommand(sender, icommandlistener, args); }
(In its super type command abstract, add executeSuccess method.)
Is this suitable?