Class DeniableStargatePortalEvent

java.lang.Object
org.bukkit.event.Event
Direct Known Subclasses:
StargateAccessPortalEvent, StargateListPortalEvent, StargatePlayerDestroyPortalEvent

public abstract class DeniableStargatePortalEvent extends StargateEntityPortalEvent
A Stargate event which can be denied
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether the entity should be denied access
    Gets the reason the stargate access was denied
    void
    setDeny(boolean deny)
    Sets whether to deny access to the entity
    void
    setDenyReason(String denyReason)
    Sets the reason the stargate access was denied

    Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargateEntityPortalEvent

    getEntity

    Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargatePortalEvent

    getPortal

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getDeny

      public boolean getDeny()
      Gets whether the entity should be denied access
      Returns:

      Whether the entity should be denied access

    • setDeny

      public void setDeny(boolean deny)
      Sets whether to deny access to the entity
      Parameters:
      deny -

      Whether to deny access to the entity

    • getDenyReason

      public String getDenyReason()
      Gets the reason the stargate access was denied
      Returns:

      The reason the stargate access was denied

    • setDenyReason

      public void setDenyReason(String denyReason)
      Sets the reason the stargate access was denied

      Set to null for a generic message. Set to empty for no message.

      Parameters:
      denyReason -

      The new reason why the stargate access was denied