Package me.fami6xx.rpuniverse.core.api
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
ConstructorsConstructorDescriptionLockDeniedEvent(Lock lock, org.bukkit.entity.Player player)Constructs a newLockDeniedEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListGets the static handler list for this event.@NotNull org.bukkit.event.HandlerListGets the list of handlers for this event.getLock()Gets the lock that was interacted with.org.bukkit.entity.PlayerGets the player who was denied access.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
LockDeniedEvent
Constructs a newLockDeniedEvent.- Parameters:
lock- the lock that was denied access toplayer- the player who was denied access
-
-
Method Details
-
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:
getHandlersin classorg.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
-