Interface GeyserRegisterPermissionsEvent

All Superinterfaces:
org.geysermc.event.Event

public interface GeyserRegisterPermissionsEvent extends org.geysermc.event.Event
Fired by anything that wishes to gather permission nodes and defaults.

This event is not guaranteed to be fired, as certain Geyser platforms do not have a native permission system. It can be expected to fire on Geyser-Spigot, Geyser-NeoForge, Geyser-Standalone, and Geyser-ViaProxy It may be fired by a 3rd party regardless of the platform.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    register(@NonNull String permission, @NonNull TriState defaultValue)
    Registers a permission node and its default value with the firer.
  • Method Details

    • register

      void register(@NonNull String permission, @NonNull TriState defaultValue)
      Registers a permission node and its default value with the firer.

      TriState.TRUE corresponds to all players having the permission by default.
      TriState.NOT_SET corresponds to only server operators having the permission by default (if such a concept exists on the platform).
      TriState.FALSE corresponds to no players having the permission by default.

      Parameters:
      permission - the permission node to register
      defaultValue - the default value of the node