Interface CommandRegistrar

All Known Implementing Classes:
AutoCommandRegistrar

public interface CommandRegistrar
  • Method Details

    • registerAllCommands

      List<String> registerAllCommands()
      Registers all commands.
      Returns:
      A list of names of the registered commands.
    • registerCommand

      default void registerCommand(String name, CommandExecutor executor)
      Registers a command.
      Parameters:
      name - The name of the command.
      executor - The executor of the command.
    • registerCommand

      void registerCommand(String name, CommandExecutor executor, TabCompleter tabCompleter)
      Registers a command.
      Parameters:
      name - The name of the command.
      executor - The executor of the command.
      tabCompleter - The tab completer of the command.