Package org.bukkit.event.player
Class PlayerChangedWorldEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChangedWorldEvent
public class PlayerChangedWorldEvent extends PlayerEvent
Called when a player switches to another world.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerChangedWorldEvent(Player player, World from)
-
Method Summary
Modifier and Type Method Description World
getFrom()
Gets the world the player is switching from.static HandlerList
getHandlerList()
HandlerList
getHandlers()
-
Constructor Details
-
Method Details
-
getFrom
Gets the world the player is switching from.- Returns:
- player's previous world
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-