Package wtf.choco.veinminer.platform
Interface ServerCommandRegistry
- All Known Implementing Classes:
BukkitServerCommandRegistry
public interface ServerCommandRegistry
The server's command registry.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerCommand
(@NotNull String name, @NotNull wtf.choco.veinminer.command.CommandExecutor command) Register a command with the given name to the providedCommandExecutor
.
-
Method Details
-
registerCommand
void registerCommand(@NotNull @NotNull String name, @NotNull @NotNull wtf.choco.veinminer.command.CommandExecutor command) Register a command with the given name to the providedCommandExecutor
.- Parameters:
name
- the name of the command to registercommand
- the executable to call when the command is run
-