Class PlayerLevelUpEvent
java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.PlayerLevelUpEvent
public class PlayerLevelUpEvent
extends org.bukkit.event.Event
Event called when a player leveled up
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
getLevel()
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLevelUpEvent
Constructor- Parameters:
playerClass
- data of the player leveling upamount
- how many levels the player's class gained
-
-
Method Details
-
getPlayerData
- Returns:
- data of the player whose class leveled up
-
getPlayerClass
- Returns:
- the player's class that is leveling up
-
getLevel
public int getLevel()- Returns:
- new level of the player's class
-
getAmount
public int getAmount()- Returns:
- how many levels the player's class gained
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- gets the handlers for the event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()- Returns:
- gets the handlers for the event
-