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.
  • Constructor Details

    • PlayerLevelcheckEvent

      public PlayerLevelcheckEvent(org.bukkit.OfflinePlayer player, int vehicles, LevelcheckType type)
  • 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

      public LevelcheckType 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 class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()