Class TeleportWarmupEvent

All Implemented Interfaces:

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()
      The warmup delay, in seconds.
    • setDelay

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