Get successful count after execute a command.

XMLWordPrintable

    • 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?

            Assignee:
            Unassigned
            Reporter:
            mukiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: