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

    • PSRemoveEvent

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

      public PSRemoveEvent(PSRegion psr)
  • 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

      public PSRegion getRegion()
      Returns the region being removed.
      Returns:
      the region being removed
    • 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()