Class StargateAccessPortalEvent


public class StargateAccessPortalEvent extends DeniableStargatePortalEvent
This event should be called whenever a player attempts to access a stargate

This event is triggered whenever a player enters or activates a stargate. This event can be used to override whether the player should be allowed to access the stargate.

  • Constructor Details

    • StargateAccessPortalEvent

      public StargateAccessPortalEvent(org.bukkit.entity.Entity travellingEntity, Portal portal, boolean deny, String denyReason)
      Instantiates a new stargate access event
      Parameters:
      travellingEntity -

      The entity travelling through a portal

      portal -

      The portal involved in the event

      deny -

      Whether the stargate access should be denied

      denyReason -

      The reason stargate access was denied

  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets a handler-list containing all event handlers
      Returns:

      A handler-list with all event handlers

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event