Пример #1
0
 protected void registerCommands() {
   final CommandManager commandManager = new CommandManager(this);
   this.getCommand("tm").setExecutor(commandManager);
   commandManager.addCommand(new ReloadCommand(this));
   commandManager.addCommand(new StartCommand(this));
   commandManager.addCommand(new StatusCommand(this));
   commandManager.addCommand(new StopCommand(this));
 }
 @Override
 protected void registerCommands() {
   final CommandManager cm = new CommandManager(this);
   this.getCommand("vi").setExecutor(cm);
   cm.addCommand(new AddCommand(this));
   cm.addCommand(new ListCommand(this));
   cm.addCommand(new RemoveCommand(this));
   cm.addCommand(new TestCommand(this));
 }