Package fr.andross.banitem.events
Class DeleteBannedItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
fr.andross.banitem.events.DeleteBannedItemEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class DeleteBannedItemEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Called when a banned item has been detected
and should be deleted from the current inventory view of the player.
Cancelling the event will cancel the delete process.
- Version:
- 3.1
- Author:
- Andross
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe banned item involvedstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
DeleteBannedItemEvent
-
-
Method Details
-
getBannedItem
The banned item involved- Returns:
- the banned item
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static org.bukkit.event.HandlerList getHandlerList()
-