Interface GeyserDefineCommandsEvent

All Superinterfaces:
org.geysermc.event.Event

public interface GeyserDefineCommandsEvent extends org.geysermc.event.Event
Called when commands are defined within Geyser.

This event allows you to register new commands using the register(Command) method and retrieve the default commands defined.

  • Method Details

    • register

      void register(Command command)
      Registers the given Command into the Geyser command manager.
      Parameters:
      command - the command to register
    • commands

      Map<String,Command> commands()
      Gets all the registered built-in Commands.
      Returns:
      all the registered built-in commands as an unmodifiable map