Class FPlayerTeleportEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

@NullMarked public class FPlayerTeleportEvent extends FactionPlayerEvent implements org.bukkit.event.Cancellable
  • Constructor Details

  • Method Details

    • getReason

      public FPlayerTeleportEvent.Reason getReason()
      Get the reason the player is teleporting.
      Returns:
      reason player is teleporting.
    • getDestination

      public @Nullable org.bukkit.Location getDestination()
      Gets the destination, if known before starting to teleport.
      Returns:
      destination unless STUCK
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean c)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable