Package 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
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerLevelChangeEvent(Player player, int oldLevel, int newLevel)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
int
getNewLevel()
Gets the new level of the playerint
getOldLevel()
Gets the old level of the player
-
Constructor Details
-
Method Details
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-