Class WhitelistToggleEvent

java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.server.WhitelistToggleEvent

@NullMarked public class WhitelistToggleEvent extends Event
This event is fired when whitelist is toggled
  • Constructor Details

    • WhitelistToggleEvent

      @Internal public WhitelistToggleEvent(boolean enabled)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Gets whether whitelist is going to be enabled or not
      Returns:
      Whether whitelist is going to be enabled or not
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()