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
ConstructorsConstructorDescriptionRtpPostTeleportEvent(org.bukkit.entity.Player player, org.bukkit.World world, org.bukkit.Location destination) Creates a new RTP post-teleport event. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationReturns the location the player arrived at (a copy).static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.PlayerReturns the teleported player.org.bukkit.WorldgetWorld()Returns the world.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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 playerworld- the worlddestination- 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:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-