Class NationCalculateNationLevelNumberEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.nation.NationCalculateNationLevelNumberEvent

public class NationCalculateNationLevelNumberEvent extends org.bukkit.event.Event
An event that is thrown which allows other plugins to alter a Nation's NationLevel Number. ie: 1 to TownySettings.getNationLevelMax(). This is used as a key to determine which NationLevel a Nation receives, and ultimately which attributes that Nation will receive.
Since:
0.99.6.2
Author:
LlmDl
  • Constructor Details

    • NationCalculateNationLevelNumberEvent

      @Internal public NationCalculateNationLevelNumberEvent(Nation nation, int predeterminedLevelNumber, int modifier)
  • Method Details

    • getNation

      public Nation getNation()
    • setNationlevelNumber

      @Deprecated(since="0.102.0.12") public void setNationlevelNumber(int value)
      Deprecated.
      Parameters:
      value - number that would be the nation's NationLevel.
    • setNationLevelNumber

      public void setNationLevelNumber(int number)
    • getNationLevelNumber

      public int getNationLevelNumber()
    • getModifier

      public int getModifier()
      Returns the modifier which is being used to calculate the nation level, typically the resident count.
      Returns:
      the modifier which is being used to calculate the nation level, typically the resident count
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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