Example #1
0
 private void registerCommands() {
   cmdExecutor.changeLabelSelector("statusutil");
   cmdExecutor.registerCommand(
       new SetStatus(this, "set any any any any any any any any any any", "nnstatus.set", null));
   cmdExecutor.registerCommand(
       new SetJobStatus(
           this, "setjob any any any any any any any any any", "nnstatus.setjob", null));
   cmdExecutor.registerCommand(
       new UpdateCurrentStatus(
           this, "updatecurrentstatus any", "nnstatus.updatecurrentstatus", null));
   cmdExecutor.registerCommand(new HealAll(this, "healall any", "nnstatus.healall", null));
 }
Example #2
0
 @Override
 public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
   return cmdExecutor.onCommand(label, sender, args);
 }