Class BukkitServerCommandRegistry

java.lang.Object
wtf.choco.veinminer.platform.BukkitServerCommandRegistry
All Implemented Interfaces:
ServerCommandRegistry

public final class BukkitServerCommandRegistry extends Object implements ServerCommandRegistry
Bukkit implementation of ServerCommandRegistry.
  • Constructor Details

    • BukkitServerCommandRegistry

      public BukkitServerCommandRegistry(@NotNull @NotNull JavaPlugin plugin)
      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 provided CommandExecutor.
      Specified by:
      registerCommand in interface ServerCommandRegistry
      Parameters:
      name - the name of the command to register
      command - the executable to call when the command is run