Class RtpPostTeleportEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.rtp.event.RtpPostTeleportEvent

public class RtpPostTeleportEvent extends org.bukkit.event.Event
Fired after an RTP teleport lands.

Observe-only: the player is already at the destination, so this event cannot be cancelled.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RtpPostTeleportEvent(org.bukkit.entity.Player player, org.bukkit.World world, org.bukkit.Location destination)
    Creates a new RTP post-teleport event.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    Returns the location the player arrived at (a copy).
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Returns the teleported player.
    org.bukkit.World
    Returns the world.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RtpPostTeleportEvent

      public RtpPostTeleportEvent(org.bukkit.entity.Player player, org.bukkit.World world, org.bukkit.Location destination)
      Creates a new RTP post-teleport event.
      Parameters:
      player - the teleported player
      world - the world
      destination - the location the player arrived at
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the teleported player.
      Returns:
      the player
    • getWorld

      public org.bukkit.World getWorld()
      Returns the world.
      Returns:
      the world
    • getDestination

      public org.bukkit.Location getDestination()
      Returns the location the player arrived at (a copy).
      Returns:
      the destination
    • getHandlers

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

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