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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownCalculateTownLevelNumberEvent
(Town town, int predeterminedLevelNumber) An event that is thrown which allows other plugins to alter a Town's TownLevel Number. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
getTown()
int
void
setTownLevelNumber
(int value) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownCalculateTownLevelNumberEvent
An event that is thrown which allows other plugins to alter a Town's TownLevel Number. ie: 1 toTownySettings.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
-
setTownLevelNumber
public void setTownLevelNumber(int value) -
getTownLevelNumber
public int getTownLevelNumber() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-