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.
  • Constructor Details

    • PSCreateEvent

      public PSCreateEvent(PSRegion psr, org.bukkit.entity.Player player)
    • PSCreateEvent

      public PSCreateEvent(PSRegion psr)
  • Method Details

    • getPlayer

      public 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
    • getRegion

      public PSRegion getRegion()
      Returns the region being created.
      Returns:
      the region being created
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean isCancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()