Package org.bukkit.event.player
Class PlayerChangedWorldEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChangedWorldEvent
Called when a player switches to another world.
-
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
-
Method Summary
Modifier and TypeMethodDescriptiongetFrom()
Gets the world the player is switching from.static @NotNull HandlerList
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerChangedWorldEvent
-
-
Method Details
-
getFrom
Gets the world the player is switching from.- Returns:
- player's previous world
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-