类 CommandBuilder


  • public class CommandBuilder
    extends Object
    Fast Create a command.
    ICommand implement = new CommandBuilder()
     .provider(new PrintStreamProvider(null))
     .logger(Logger.getLogger("MyCommand"))
     .ofClass(AnyCommand.class)
     .buildCommands()
    
     this.getCommand("my-command").setExecutor(
          new CommandBuilder()
              .provider(new BukkitCommandProvider(null))
              .logger(this.getLogger())
              .ofClass(AnyCommand.class)
              .ofFile(this.getFile())
              .end(BukkitCommandExecutor::new)
     );