Class TeleportWarmupEvent

All Implemented Interfaces:
Cancellable

public class TeleportWarmupEvent extends TeleportEvent
Called when a command starts a player's teleport warmup.

Cancelling this event will prevent the user from teleporting, and any previously pending teleport will commence rather than being cancelled. To skip the warmup delay, see setDelay(double).

  • Constructor Details

  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

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

      public double getDelay()
      Returns:
      The warmup delay, in seconds.
    • setDelay

      public void setDelay(double delay)
      Parameters:
      delay - The warmup delay, in seconds. Set this to 0 to skip the warmup delay.