-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Minor
-
None
-
Affects Version/s: 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?