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
Event that is triggered before a player teleports to a warp.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
List of all possible ways a player can warp.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerWarpTeleportEvent
(Warp playerWarp, Player teleporter, PlayerWarpTeleportEvent.Cause cause) This event is triggered before a player teleports to a warp. -
Method Summary
Methods inherited from class com.olziedev.playerwarps.api.events.WarpEvent
acceptCallback, callEvent, getPlayerWarpsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerWarpTeleportEvent
public PlayerWarpTeleportEvent(Warp playerWarp, 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.teleporter
- The player that is teleporting.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayerWarp
- Returns:
- The warp instance that is being teleported to.
-
getTeleporter
- Returns:
- The player that is teleporting.
-
getCause
- Returns:
- The cause will trigger the warp removal.
-