org.bukkit.event.player
Class PlayerChangedWorldEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.player.PlayerEvent
          extended by org.bukkit.event.player.PlayerChangedWorldEvent

public class PlayerChangedWorldEvent
extends PlayerEvent

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
PlayerChangedWorldEvent(Player player, World from)
           
 
Method Summary
 World getFrom()
          Gets the world the player is switching from.
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 
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
 

Constructor Detail

PlayerChangedWorldEvent

public PlayerChangedWorldEvent(Player player,
                               World from)
Method Detail

getFrom

public World getFrom()
Gets the world the player is switching from.

Returns:
player's previous world

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.