Class WarpModifyEvent

java.lang.Object
org.bukkit.event.Event
net.essentialsx.api.v2.events.WarpModifyEvent
All Implemented Interfaces:
Cancellable

public class WarpModifyEvent extends Event implements Cancellable
Called when a warp is about to be modified. Includes creation and deletion as described in WarpModifyEvent.WarpModifyCause.
  • Constructor Details

  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable
    • getUser

      public IUser getUser()
    • getCause

    • getWarpName

      public String getWarpName()
    • getOldLocation

      public Location getOldLocation()
      Gets the current location of the warp or null if it's being created or if the previous location's world is not loaded.
      Returns:
      The warps new location or null.
    • getNewLocation

      public Location getNewLocation()
      Gets the new location this warp is being updated to, or null if it's being deleted.
      Returns:
      The warps new location or null.
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()