Package dev.espi.protectionstones.event
Class PSCreateEvent
java.lang.Object
org.bukkit.event.Event
dev.espi.protectionstones.event.PSCreateEvent
- All Implemented Interfaces:
- org.bukkit.event.Cancellable
public class PSCreateEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event that is called when a protectionstones region is created, either by a player, or by the plugin.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.Eventorg.bukkit.event.Event.Result
- 
Constructor SummaryConstructorsConstructorDescriptionPSCreateEvent(PSRegion psr)PSCreateEvent(PSRegion psr, org.bukkit.entity.Player player)
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.PlayerReturns the player that created the protection region, if applicableReturns the region being created.booleanvoidsetCancelled(boolean isCancelled)Methods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
PSCreateEvent
- 
PSCreateEvent
 
- 
- 
Method Details- 
getPlayerpublic org.bukkit.entity.Player getPlayer()Returns the player that created the protection region, if applicable- Returns:
- the player, or null if the region was not created because of a player
 
- 
getRegionReturns the region being created.- Returns:
- the region being created
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- org.bukkit.event.Cancellable
 
- 
setCancelledpublic void setCancelled(boolean isCancelled)- Specified by:
- setCancelledin interface- org.bukkit.event.Cancellable
 
- 
getHandlerspublic org.bukkit.event.HandlerList getHandlers()- Specified by:
- getHandlersin class- org.bukkit.event.Event
 
- 
getHandlerListpublic static org.bukkit.event.HandlerList getHandlerList()
 
-