Interface CommandRegistrar
- All Known Implementing Classes:
AutoCommandRegistrar
public interface CommandRegistrar
-
Method Summary
Modifier and TypeMethodDescriptionRegisters all commands.default voidregisterCommand(String name, CommandExecutor executor) Registers a command.voidregisterCommand(String name, CommandExecutor executor, TabCompleter tabCompleter) Registers a command.
-
Method Details
-
registerAllCommands
Registers all commands.- Returns:
- A list of names of the registered commands.
-
registerCommand
Registers a command.- Parameters:
name- The name of the command.executor- The executor of the command.
-
registerCommand
Registers a command.- Parameters:
name- The name of the command.executor- The executor of the command.tabCompleter- The tab completer of the command.
-