Class WarpWarmupCancelEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.warp.event.WarpWarmupCancelEvent

public class WarpWarmupCancelEvent extends org.bukkit.event.Event
Fired when a warp teleport warmup is abandoned.

Observe-only: the warmup is already gone, so this event cannot be cancelled. See WarpWarmupCancelEvent.CancelReason for why it was abandoned.

  • Constructor Details

    • WarpWarmupCancelEvent

      public WarpWarmupCancelEvent(org.bukkit.entity.Player player, Warp warp, WarpWarmupCancelEvent.CancelReason reason)
      Creates a new warp warmup cancel event.
      Parameters:
      player - the player whose warmup was abandoned
      warp - the destination warp
      reason - why the warmup was abandoned
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the player whose warmup was abandoned.
      Returns:
      the player
    • getWarp

      public Warp getWarp()
      Returns the destination warp.
      Returns:
      the warp
    • getReason

      Returns why the warmup was abandoned.
      Returns:
      the cancel reason
    • getHandlers

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

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