Class WarpPostTeleportEvent
java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.warp.event.WarpPostTeleportEvent
public class WarpPostTeleportEvent
extends org.bukkit.event.Event
Fired after a player arrives at a warp.
Observe-only: the teleport already happened, 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
ConstructorsConstructorDescriptionWarpPostTeleportEvent(org.bukkit.entity.Player player, Warp warp, org.bukkit.Location destination) Creates a new warp 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.getWarp()Returns the destination warp.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
WarpPostTeleportEvent
public WarpPostTeleportEvent(org.bukkit.entity.Player player, Warp warp, org.bukkit.Location destination) Creates a new warp post-teleport event.- Parameters:
player- the teleported playerwarp- the destination warpdestination- the location the player arrived at
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Returns the teleported player.- Returns:
- the player
-
getWarp
Returns the destination warp.- Returns:
- the warp
-
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()
-