Package dev.espi.protectionstones.event
Class PSRemoveEvent
java.lang.Object
org.bukkit.event.Event
dev.espi.protectionstones.event.PSRemoveEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PSRemoveEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event that is called when a protection stones region is removed
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPSRemoveEvent(PSRegion psr)
PSRemoveEvent(PSRegion psr, org.bukkit.entity.Player player)
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Returns the player that removed the protect block, if applicableReturns the region being removed.boolean
void
setCancelled(boolean isCancelled)
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PSRemoveEvent
-
PSRemoveEvent
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Returns the player that removed the protect block, if applicable- Returns:
- the player, or null if the region was not removed because of a player
-
getRegion
Returns the region being removed.- Returns:
- the region being removed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean isCancelled)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-