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

      public NationCalculateNationLevelNumberEvent(Nation nation, int predeterminedLevelNumber)
      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.
      Parameters:
      nation - Nation which is having their NationLevel number calculated.
      predeterminedLevelNumber - The number which Towny has already assigned to the nation.
  • Method Details

    • getNation

      public Nation getNation()
    • setNationlevelNumber

      public void setNationlevelNumber(int value)
    • getNationLevelNumber

      public int getNationLevelNumber()
    • getHandlers

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

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