Class LockDeniedEvent

java.lang.Object
org.bukkit.event.Event
me.fami6xx.rpuniverse.core.api.LockDeniedEvent

public class LockDeniedEvent extends org.bukkit.event.Event
Event that is called when a player tries to open a locked block but is denied.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    LockDeniedEvent​(Lock lock, org.bukkit.entity.Player player)
    Constructs a new LockDeniedEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the static handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the list of handlers for this event.
    Gets the lock that was interacted with.
    org.bukkit.entity.Player
    Gets the player who was denied access.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • LockDeniedEvent

      public LockDeniedEvent(Lock lock, org.bukkit.entity.Player player)
      Constructs a new LockDeniedEvent.
      Parameters:
      lock - the lock that was denied access to
      player - the player who was denied access
  • Method Details

    • getLock

      public Lock getLock()
      Gets the lock that was interacted with.
      Returns:
      the lock that was denied access to
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Gets the player who was denied access.
      Returns:
      the player who was denied access
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the list of handlers
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static handler list for this event.
      Returns:
      the static handler list