Class PlayerWarpTeleportEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerwarps.api.events.WarpEvent
com.olziedev.playerwarps.api.events.warp.PlayerWarpTeleportEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
PlayerWarpPreTeleportEvent
Event that is triggered before a player teleports to a warp.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumList of all possible ways a player can warp.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerWarpTeleportEvent(Warp playerWarp, WLocation teleportLocation, Player teleporter, PlayerWarpTeleportEvent.Cause cause) This event is triggered before a player teleports to a warp. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()static HandlerListvoidsetTeleportLocation(WLocation teleportLocation) Sets the location the player will be teleported to.Methods inherited from class com.olziedev.playerwarps.api.events.WarpEvent
acceptCallback, callEvent, getPlayerWarpsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallbackMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerWarpTeleportEvent
public PlayerWarpTeleportEvent(Warp playerWarp, WLocation teleportLocation, Player teleporter, PlayerWarpTeleportEvent.Cause cause) This event is triggered before a player teleports to a warp.- Parameters:
playerWarp- The warp instance that is being teleported to.teleportLocation- The location the player will be teleported to.teleporter- The player that is teleporting.cause- The cause will trigger the warp removal.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getPlayerWarp
- Returns:
- The warp instance that is being teleported to.
-
getTeleportLocation
- Returns:
- The location the player will be teleported to.
-
setTeleportLocation
Sets the location the player will be teleported to.- Parameters:
teleportLocation- The location the player will be teleported to.
-
getTeleporter
- Returns:
- The player that is teleporting.
-
getCause
- Returns:
- The cause will trigger the warp removal.
-