Package net.ess3.api.events.teleport
Class TeleportEvent
java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.teleport.TeleportEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
PreTeleportEvent
,TeleportWarmupEvent
Abstract class for various teleport events.
You should listen to
PreTeleportEvent
or TeleportWarmupEvent
depending on your needs.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Method Summary
Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
-
Method Details
-
getTeleporter
- Returns:
- The user that initiated the teleportation, or null if unknown
-
getTeleportee
- Returns:
- The user to be teleported
-
getTeleportCause
- Returns:
- The reason for teleportation
-
getTarget
- Returns:
- The target to teleport to, or null if unknown at this stage (such as a forced respawn)
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelled
in interfaceCancellable
-