org.bukkit.event.player
Class PlayerLevelChangeEvent

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

public class PlayerLevelChangeEvent
extends PlayerEvent

Called when a players level changes


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
PlayerLevelChangeEvent(Player player, int oldLevel, int newLevel)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 int getNewLevel()
          Gets the new level of the player
 int getOldLevel()
          Gets the old level of the player
 
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

PlayerLevelChangeEvent

public PlayerLevelChangeEvent(Player player,
                              int oldLevel,
                              int newLevel)
Method Detail

getOldLevel

public int getOldLevel()
Gets the old level of the player

Returns:
The old level of the player

getNewLevel

public int getNewLevel()
Gets the new level of the player

Returns:
The new (current) level of the player

getHandlers

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

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.