Package dev.kitteh.factions.event
Class FPlayerTeleportEvent
java.lang.Object
org.bukkit.event.Event
dev.kitteh.factions.event.FactionEvent
dev.kitteh.factions.event.FactionPlayerEvent
dev.kitteh.factions.event.FPlayerTeleportEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
@NullMarked
public class FPlayerTeleportEvent
extends FactionPlayerEvent
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionFPlayerTeleportEvent(FPlayer p, @Nullable org.bukkit.Location location, FPlayerTeleportEvent.Reason r) -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.LocationGets the destination, if known before starting to teleport.Get the reason the player is teleporting.booleanvoidsetCancelled(boolean c) Methods inherited from class dev.kitteh.factions.event.FactionPlayerEvent
getFPlayerMethods inherited from class dev.kitteh.factions.event.FactionEvent
getFaction, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
FPlayerTeleportEvent
public FPlayerTeleportEvent(FPlayer p, @Nullable org.bukkit.Location location, FPlayerTeleportEvent.Reason r)
-
-
Method Details
-
getReason
Get the reason the player is teleporting.- Returns:
- reason player is teleporting.
-
getDestination
public @Nullable org.bukkit.Location getDestination()Gets the destination, if known before starting to teleport.- Returns:
- destination unless STUCK
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean c) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-