Class PlayerOpenOwnInventoryEvent
java.lang.Object
org.bukkit.event.Event
fr.prodrivers.bukkit.commons.events.PlayerOpenOwnInventoryEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PlayerOpenOwnInventoryEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event fired when player open its own inventory.
ProdriversCommons offers a convenient way to be informed of a player opening its own inventory, which is normally not possible.
As it is using an achievement trick, they are not available on servers who's ProdriversCommons implementation offers this feature.
This event is not fired immediately as a significant delay happens between the moment the player opens it and the moment the event is fired.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
final org.bukkit.entity.Player
Get the concerned playerboolean
Get if the event is cancelledvoid
setCancelled
(boolean cancelled) Set that the event is cancelledMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerOpenOwnInventoryEvent
public PlayerOpenOwnInventoryEvent(org.bukkit.entity.Player player)
-
-
Method Details
-
getPlayer
public final org.bukkit.entity.Player getPlayer()Get the concerned player- Returns:
- Concerned player
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()Get if the event is cancelled- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Returns:
true
Event is cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Set that the event is cancelled- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Parameters:
cancelled
- Cancellation state
-