Class PlayerTeleportHubEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerTeleportHubEvent
- All Implemented Interfaces:
Cancellable
This event gets called whenever the player gets teleported to the hub.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
boolean
In somce cases the player is only getting teleported to the hub position on the local server.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerTeleportHubEvent
-
-
Method Details
-
isDecliningServerMovement
public boolean isDecliningServerMovement()In somce cases the player is only getting teleported to the hub position on the local server.This method defines whether the player should never be teleported to an other server or get kicked. Reason being, that the player might get teleported when he e.g. joins the server.
- Returns:
true
when the plugin forbids server movements
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-