Interface CommandManager<T>

Type Parameters:
T - The sender type

public interface CommandManager<T>
A centralized handler for all command creation and registration purposes
  • Method Details

    • getRegistrar

      CommandRegistrar<T> getRegistrar()
      Returns:
      The registrar which can be used to register and unregister commands
    • getHelpDisplayer

      HelpDisplayer<T> getHelpDisplayer()
      Returns:
      The help displayer, used internally to display help messages
    • getComponentFactory

      ComponentFactory<T> getComponentFactory()
      Returns:
      The component factory, used internally to initialize command components
    • getParser

      CommandParser<T> getParser()
      Returns:
      A command parser instance, used to parse command files and register the parsed commands
    • builder

      CommandBuilder<T,?> builder(String... names)
      Creates a new command builder
      Parameters:
      names - The names of the command
      Returns:
      A new command builder
    • getCommandPrefix

      String getCommandPrefix()
      Returns:
      The prefix that appears before all commands