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 Summary

    Modifier and Type
    Method
    Description
    @NonNull Map<String,​Command>
    Gets all the registered built-in Commands.
    void
    register​(@NonNull Command command)
    Registers the given Command into the Geyser command manager.
  • Method Details

    • register

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

      @NonNull Map<String,​Command> commands()
      Gets all the registered built-in Commands.
      Returns:
      all the registered built-in commands