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
ConstructorsConstructorDescriptionNationCalculateNationLevelNumberEvent(Nation nation, int predeterminedLevelNumber, int modifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListintReturns the modifier which is being used to calculate the nation level, typically the resident count.intvoidsetNationlevelNumber(int value) Deprecated.voidsetNationLevelNumber(int number) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
NationCalculateNationLevelNumberEvent
@Internal public NationCalculateNationLevelNumberEvent(Nation nation, int predeterminedLevelNumber, int modifier)
-
-
Method Details
-
getNation
-
setNationlevelNumber
Deprecated.UsesetNationLevelNumber(int)instead.- 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:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-