org.bukkit.event.player
Class PlayerLevelChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerLevelChangeEvent
public class PlayerLevelChangeEvent
- extends PlayerEvent
Called when a players level changes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerLevelChangeEvent
public PlayerLevelChangeEvent(Player player,
int oldLevel,
int newLevel)
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.