Package wtf.choco.veinminer.platform
Class BukkitServerCommandRegistry
java.lang.Object
wtf.choco.veinminer.platform.BukkitServerCommandRegistry
- All Implemented Interfaces:
ServerCommandRegistry
Bukkit implementation of
ServerCommandRegistry
.-
Constructor Summary
ConstructorDescriptionBukkitServerCommandRegistry
(@NotNull JavaPlugin plugin) Construct a newBukkitServerCommandRegistry
. -
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
.
-
Constructor Details
-
BukkitServerCommandRegistry
Construct a newBukkitServerCommandRegistry
.- Parameters:
plugin
- the plugin instance
-
-
Method Details
-
registerCommand
public void registerCommand(@NotNull @NotNull String name, @NotNull @NotNull wtf.choco.veinminer.command.CommandExecutor command) Description copied from interface:ServerCommandRegistry
Register a command with the given name to the providedCommandExecutor
.- Specified by:
registerCommand
in interfaceServerCommandRegistry
- Parameters:
name
- the name of the command to registercommand
- the executable to call when the command is run
-