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