Class TownCalculateTownLevelNumberEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.town.TownCalculateTownLevelNumberEvent

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

    • TownCalculateTownLevelNumberEvent

      public TownCalculateTownLevelNumberEvent(Town town, int predeterminedLevelNumber)
      An event that is thrown which allows other plugins to alter a Town's TownLevel Number. ie: 1 to TownySettings.getTownLevelMax(). This is used as a key to determine which TownLevel a Town receives, and ultimately which attributes that Town will receive.
      Parameters:
      town - Town which is having their TownLevel number calculated.
      predeterminedLevelNumber - The number which Towny has already assigned to the town.
  • Method Details

    • getTown

      public Town getTown()
    • setTownLevelNumber

      public void setTownLevelNumber(int value)
    • getTownLevelNumber

      public int getTownLevelNumber()
    • getHandlers

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

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