Class PlayerLevelcheckEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerLevelcheckEvent
public class PlayerLevelcheckEvent
extends org.bukkit.event.Event
This event is thrown when a levelcheck is executed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerLevelcheckEvent
(org.bukkit.OfflinePlayer player, int vehicles, LevelcheckType type) -
Method Summary
Modifier and TypeMethodDescriptionint
Calculate the level for this player.static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get the type of levelcheckorg.bukkit.OfflinePlayer
Get the player who's level is being calculatedint
Get the amount of vehiclesvoid
setVehicles
(int vehicles) Set the amount of vehiclesMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerLevelcheckEvent
-
-
Method Details
-
getPlayer
public org.bukkit.OfflinePlayer getPlayer()Get the player who's level is being calculated- Returns:
- player who's level is being calculated
-
getVehicles
public int getVehicles()Get the amount of vehicles- Returns:
- amount of vehicles
-
setVehicles
public void setVehicles(int vehicles) Set the amount of vehicles- Parameters:
vehicles
- vehicles
-
getLevelcheckType
Get the type of levelcheck- Returns:
- levelcheck type
-
calculateLevel
public int calculateLevel()Calculate the level for this player. This might take a moment, so running this asynchronous is recommended.- Returns:
- calculated level
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-