Class PlayerClassChangeEvent
java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.PlayerClassChangeEvent
public class PlayerClassChangeEvent
extends org.bukkit.event.Event
Event called when a player changes classes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerClassChangeEvent
(PlayerClass playerClass, FabledClass previousClass, FabledClass newClass) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerClassChangeEvent
public PlayerClassChangeEvent(PlayerClass playerClass, FabledClass previousClass, FabledClass newClass) Constructor- Parameters:
playerClass
- data of the player changing classespreviousClass
- previous class of the player (null if wasn't a profession)newClass
- new class of the player (null if using the reset command)
-
-
Method Details
-
getPlayerData
- Returns:
- Data of the player changing classes
-
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
-
getPlayerClass
-
getPreviousClass
-
getNewClass
- Returns:
- new class of the player
-