Class TownySettings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addComment
(String root, String... comments) static void
addReloadListener
(org.bukkit.NamespacedKey key, @NotNull Runnable runnable) static void
addReloadListener
(org.bukkit.NamespacedKey key, @NotNull Consumer<CommentedConfiguration> consumer) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static int
static int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static String
static String
static int
static long
static double
static double
static double
static double
static String
static int
static boolean
static boolean
getBoolean
(ConfigNodes node) static String
static String
static float
static long
static String
static String
getCapitalPostfix
(Nation nation) static String
getCapitalPostfix
(Town town) static String
getCapitalPrefix
(Nation nation) static String
getCapitalPrefix
(Town town) static double
static double
static double
static CommentedConfiguration
static Map<Integer,
TownySettings.NationLevel> static Map<Integer,
TownySettings.TownLevel> static int
static String
static int
static String
static long
static double
static double
static double
static double
static int
static double
static double
static boolean
getDebug()
static boolean
static String
static double
static String
static boolean
static boolean
static boolean
getDefaultPermission
(TownBlockOwner owner, TownyPermission.PermLevel level, TownyPermission.ActionType type) static String
static boolean
static String
static String
static String
static long
static String
static String
static double
getDouble
(ConfigNodes node) static double
static boolean
static String
static long
static int
static int
static long
static int
getInt
(ConfigNodes node) getIntArr
(ConfigNodes node) static long
static Set<org.bukkit.Material>
static int
static int
static int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static String
getKingPostfix
(Resident resident) static String
getKingPrefix
(Resident resident) static String
static String
getLastRunVersion
(String currentVersion) static String
static int
getMaxBonusBlocks
(Town town) static int
getMaxBonusBlocks
(Town town, int residents) static double
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static double
static double
static double
static double
static int
static int
getMaxOutposts
(Town town) static int
getMaxOutposts
(Town town, int residents) static int
getMaxOutposts
(Town town, int residentsAmount, int townsAmount) static double
static double
static int
static int
getMaxPurchasedBlocks
(Town town) static int
getMaxPurchasedBlocks
(Town town, int residents) static int
static int
getMaxResidentExtraPlots
(Resident resident) static int
getMaxResidentOutposts
(Resident resident) static int
getMaxResidentPlots
(Resident resident) static int
getMaxResidentsForTown
(Town town) static int
static int
static int
static int
static int
static int
getMaxTownBlocks
(Town town) static int
getMaxTownBlocks
(Town town, int residents) static int
static double
static double
static double
static String
getMayorPostfix
(Resident resident) static String
getMayorPrefix
(Resident resident) static long
getMillis
(ConfigNodes node) static int
static int
static int
static int
static int
static long
static String
static String
static String
static String
static boolean
static double
static double
getNationBankCap
(Nation nation) static int
getNationBonusBlocks
(Nation nation) static int
getNationBonusBlocks
(Town town) static String
static boolean
static boolean
static double
static double
static boolean
static TownySettings.NationLevel
getNationLevel
(int levelNumber) static TownySettings.NationLevel
getNationLevel
(Nation nation) static TownySettings.NationLevel
getNationLevel
(Nation nation, int residents) Deprecated.static int
getNationLevelFromGivenInt
(int threshold) Get the Nation's Level for a supposed population size or town amount (depending on server configuration.)static int
static TownySettings.NationLevel
getNationLevelWithModifier
(int modifier) static int
static int
static double
static double
getNationNeutralityCost
(Nation nation) static String
getNationPostfix
(Nation nation) static String
getNationPrefix
(Nation nation) static double
static double
static double
static double
static double
Deprecated.since 0.100.0.9, usegetNationProximityToCapital()
instead.static double
static double
static double
getNationUpkeepCost
(Nation nation) static int
static boolean
static boolean
static boolean
static boolean
static long
static long
static double
static int
static int
static int
static double
static String
static int
static String
static String
static String
static String
static String
static String
static String
static int
static int
static double
static int
static String
static int
static double
static boolean
static boolean
static int
static long
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static int
static int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static double
static double
static Collection<org.bukkit.Material>
static Collection<org.bukkit.Material>
static Collection<org.bukkit.Material>
static long
static long
static boolean
static Object
getProperty
(String root) static double
static double
static double
static int
static boolean
static Collection<org.bukkit.Material>
static String
static long
getSeconds
(ConfigNodes node) static long
static boolean
static boolean
static boolean
static int
static SpawnLevel
getSpawnLevel
(ConfigNodes node) static long
static double
static String
static String
static String
static String
static String
static String
static String
getStrArr
(ConfigNodes node) static String
getString
(ConfigNodes node) static String
static String
static Set<org.bukkit.Material>
static double
static int
static String
getTool()
static String
static boolean
static boolean
static double
static double
getTownBankCap
(Town town) static int
static int
static boolean
static String
static double
static boolean
static boolean
static double
static boolean
static double
static double
static double
static boolean
static int
static boolean
static long
static TownySettings.TownLevel
getTownLevel
(int numResidents) static TownySettings.TownLevel
getTownLevel
(Town town) static TownySettings.TownLevel
getTownLevel
(Town town, int residents) Deprecated.since 0.99.6.3 usegetTownLevelWithModifier(int, Town)
instead.static int
getTownLevelFromGivenInt
(int threshold, Town town) Get the town level for a given population size.static int
static int
getTownLevelWhichIsManuallySet
(int level) Gets the TownLevel for manually-set towns, returning the key in the SortedMap which corresponds with the position of the key in the SortedMap's keySet.static TownySettings.TownLevel
getTownLevelWithModifier
(int modifier, Town town) static int
static int
static int
static double
static double
getTownNeutralityCost
(Town town) static double
getTownPenaltyUpkeepCost
(Town town) static String
getTownPostfix
(Town town) static String
getTownPrefix
(Town town) static double
static boolean
static int
static int
static boolean
static double
static int
static double
static double
getTownUpkeepCost
(Town town) static int
static boolean
static boolean
static Collection<org.bukkit.Material>
static boolean
static String
static boolean
static double
static double
static boolean
static String
static boolean
static boolean
static String
static double
static double
static boolean
static boolean
static SpawnLevel
static SpawnLevel
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isFakeResident
(String name) static boolean
isFire()
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isItemUseMaterial
(org.bukkit.Material material, org.bukkit.Location location) static boolean
static boolean
static boolean
static boolean
isLanguageEnabled
(@NotNull String locale) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isPvP()
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isSellingBonusBlocks
(Town town) static boolean
static boolean
static boolean
static boolean
static boolean
isSwitchMaterial
(org.bukkit.Material material, org.bukkit.Location location) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isTownyUpdating
(String currentVersion) static boolean
isTownyUpToDate
(String currentVersion) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static void
loadConfig
(Path configPath, String version) static void
static void
Loads nation levels.static void
Loads town levels.static double
static boolean
static void
newNationLevel
(int numResidents, String namePrefix, String namePostfix, String capitalPrefix, String capitalPostfix, String kingPrefix, String kingPostfix, int townBlockLimitBonus, double nationUpkeepMultiplier, double nationTownUpkeepMultiplier, double peacefulCostMultiplier, double bankCapModifier, int nationZonesSize, int nationBonusOutpostLimit) static long
static void
newTownLevel
(int numResidents, String namePrefix, String namePostfix, String mayorPrefix, String mayorPostfix, int townBlockLimit, double townUpkeepMultiplier, double peacefulCostMultiplier, int townOutpostLimit, int townBlockBuyBonusLimit, double debtCapModifier, double resourceProductionModifier, double bankCapModifier, Map<String, Integer> townBlockTypeLimits) static String
static boolean
static void
removeReloadListener
(@NotNull org.bukkit.NamespacedKey key) static void
static void
static void
setDatabaseVersion
(String version) static void
setDebug
(boolean b) static void
setDevMode
(boolean choice) static void
setLanguage
(String lang) static void
setLastRunVersion
(String currentVersion) static void
SetNationBankAllowWithdrawls
(boolean newSetting) static void
setProperty
(String root, Object value) static void
SetTownBankAllowWithdrawls
(boolean newSetting) static Set<org.bukkit.entity.EntityType>
toEntityTypeSet
(List<String> entityList) static Collection<org.bukkit.Material>
toMaterialSet
(List<String> materialList) static boolean
static String
-
Constructor Details
-
TownySettings
public TownySettings()
-
-
Method Details
-
newTownLevel
public static void newTownLevel(int numResidents, String namePrefix, String namePostfix, String mayorPrefix, String mayorPostfix, int townBlockLimit, double townUpkeepMultiplier, double peacefulCostMultiplier, int townOutpostLimit, int townBlockBuyBonusLimit, double debtCapModifier, double resourceProductionModifier, double bankCapModifier, Map<String, Integer> townBlockTypeLimits) -
newNationLevel
public static void newNationLevel(int numResidents, String namePrefix, String namePostfix, String capitalPrefix, String capitalPostfix, String kingPrefix, String kingPostfix, int townBlockLimitBonus, double nationUpkeepMultiplier, double nationTownUpkeepMultiplier, double peacefulCostMultiplier, double bankCapModifier, int nationZonesSize, int nationBonusOutpostLimit) -
loadTownLevelConfig
Loads town levels. Level format ignores lines starting with #. Each line is considered a level. Each level is loaded as such:numResidents:namePrefix:namePostfix:mayorPrefix:mayorPostfix: townBlockLimit
townBlockLimit is a required field even if using a calculated ratio.
- Throws:
TownyException
- if unable to load the Town Levels
-
loadNationLevelConfig
Loads nation levels. Level format ignores lines starting with #. Each line is considered a level. Each level is loaded as such:numResidents:namePrefix:namePostfix:capitalPrefix:capitalPostfix: kingPrefix:kingPostfix
- Throws:
TownyException
- if Nation Levels cannot be loaded from config
-
getTownLevel
-
getTownLevel
-
getTownLevel
Deprecated.since 0.99.6.3 usegetTownLevelWithModifier(int, Town)
instead.- Parameters:
town
- Town to test with.residents
- an int representing what modifies a townlevel, typically the number of residents in the town.- Returns:
- the TownLevel given the number of residents.
-
getTownLevelWithModifier
-
getTownLevelFromGivenInt
Get the town level for a given population size.Great for debugging, or just to see what the town level is for a given amount of residents. But for most cases you'll want to use
Town.getLevel()
, which uses the town's current population.
Note that Town Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.- Parameters:
threshold
- Number of residents used to calculate the level.town
- the Town from which to get a TownLevel.- Returns:
- The calculated Town Level. 0, if the town is ruined, or the method otherwise fails through.
-
getTownLevelWhichIsManuallySet
public static int getTownLevelWhichIsManuallySet(int level) Gets the TownLevel for manually-set towns, returning the key in the SortedMap which corresponds with the position of the key in the SortedMap's keySet.- Parameters:
level
- The number used to get the key from the keySet array.- Returns:
- the number of residents which will get us the correct TownLevel in the TownLevel SortedMap.
-
getTownLevelMax
public static int getTownLevelMax() -
getNationLevel
-
getNationLevel
-
getNationLevel
Deprecated.since 0.99.6.2 usegetNationLevelWithModifier(int)
instead.- Parameters:
nation
- Nation to test with, unused.residents
- an int representing what modifies a nationlevel.isNationLevelDeterminedByTownCount()
decides whether it is residents or towns.- Returns:
- the NationLevel given the number of residents/towns.
-
getNationLevelWithModifier
-
getNationLevelFromGivenInt
@Internal public static int getNationLevelFromGivenInt(int threshold) Get the Nation's Level for a supposed population size or town amount (depending on server configuration.)Note that Nation Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.
- Parameters:
threshold
- Number of residents or towns in the Nation, theoretical or real.- Returns:
- Nation Level (int) for the supplied threshold.
-
getNationLevelMax
public static int getNationLevelMax() -
isNationLevelDeterminedByTownCount
public static boolean isNationLevelDeterminedByTownCount() -
getConfig
-
loadConfig
-
loadDefaultConfig
@VisibleForTesting public static void loadDefaultConfig() -
toEntityTypeSet
-
toMaterialSet
-
sendError
-
getSpawnLevel
-
getBoolean
-
getDouble
-
getInt
-
getString
-
getString
-
getIntArr
-
getStrArr
-
getSeconds
-
getMillis
-
addComment
-
getDefaultFarmblocks
-
getDefaultWildsblocks
-
getKingPrefix
-
getMayorPrefix
-
getCapitalPostfix
-
getCapitalPostfix
-
getTownPostfix
-
getNationPostfix
-
getNationPrefix
-
getTownPrefix
-
getCapitalPrefix
-
getCapitalPrefix
-
getKingPostfix
-
getMayorPostfix
-
getNPCPrefix
-
getBedUse
public static boolean getBedUse() -
getDatabaseVersion
-
setDatabaseVersion
-
getLoadDatabase
-
getSaveDatabase
-
getSQLHostName
-
getSQLPort
-
getSQLDBName
-
getSQLTablePrefix
-
getSQLUsername
-
getSQLPassword
-
getSQLFlags
-
getMaxPoolSize
public static int getMaxPoolSize() -
getMaxLifetime
public static int getMaxLifetime() -
getConnectionTimeout
public static int getConnectionTimeout() -
getMaxTownBlocks
-
getMaxTownBlocks
-
getMaxOutposts
-
getMaxOutposts
-
getMaxOutposts
-
getMaxBonusBlocks
-
getMaxBonusBlocks
-
getNationBonusBlocks
-
getNationBonusBlocks
-
areTownBlocksUnlimited
public static boolean areTownBlocksUnlimited() -
getTownBlockRatio
public static int getTownBlockRatio() -
getNewTownBonusBlocks
public static int getNewTownBonusBlocks() -
getTownBlockSize
public static int getTownBlockSize() -
isShowingClaimParticleEffect
public static boolean isShowingClaimParticleEffect() -
isFriendlyFireEnabled
public static boolean isFriendlyFireEnabled() -
isUsingEconomy
public static boolean isUsingEconomy() -
isFakeResident
-
getNewTownPrice
public static double getNewTownPrice() -
getNewNationPrice
public static double getNewNationPrice() -
getUnclaimedZoneBuildRights
public static boolean getUnclaimedZoneBuildRights() -
getUnclaimedZoneDestroyRights
public static boolean getUnclaimedZoneDestroyRights() -
getUnclaimedZoneItemUseRights
public static boolean getUnclaimedZoneItemUseRights() -
getDebug
public static boolean getDebug() -
getTool
-
setDebug
public static void setDebug(boolean b) -
getShowTownNotifications
public static boolean getShowTownNotifications() -
isNotificationOwnerShowingVerboseName
public static boolean isNotificationOwnerShowingVerboseName() -
isNotificationsAppearingInActionBar
public static boolean isNotificationsAppearingInActionBar() -
getShowTownBoardOnLogin
public static boolean getShowTownBoardOnLogin() -
getShowNationBoardOnLogin
public static boolean getShowNationBoardOnLogin() -
nationCapitalsCantBeNeutral
public static boolean nationCapitalsCantBeNeutral() -
getUnclaimedZoneName
-
doesSenderRequirePermissionNodeToAddColourToTitleOrSurname
public static boolean doesSenderRequirePermissionNodeToAddColourToTitleOrSurname() -
getMaxTitleLength
public static int getMaxTitleLength() -
getMaxNameLength
public static int getMaxNameLength() -
getDeleteTime
public static long getDeleteTime() -
isDeleteEcoAccount
public static boolean isDeleteEcoAccount() -
isDeleteTownlessOnly
public static boolean isDeleteTownlessOnly() -
isDeletingOldResidents
public static boolean isDeletingOldResidents() -
getDefaultTownName
-
getWorldMobRemovalEntities
-
getWildernessMobRemovalEntities
-
getTownMobRemovalEntities
-
isEconomyAsync
public static boolean isEconomyAsync() -
getCachedBankTimeout
public static long getCachedBankTimeout() -
isRemovingVillagerBabiesWorld
public static boolean isRemovingVillagerBabiesWorld() -
isCreatureTriggeringPressurePlateDisabled
public static boolean isCreatureTriggeringPressurePlateDisabled() -
isRemovingVillagerBabiesTown
public static boolean isRemovingVillagerBabiesTown() -
getWildExplosionProtectionEntities
-
getWildExplosionRevertBlockWhitelist
-
getWildExplosionRevertMaterialsToNotOverwrite
-
getWildExplosionProtectionBlocks
-
getMobRemovalSpeed
public static long getMobRemovalSpeed() -
getHealthRegenSpeed
public static long getHealthRegenSpeed() -
hasHealthRegen
public static boolean hasHealthRegen() -
preventSaturationLoss
public static boolean preventSaturationLoss() -
getTownDefaultPublic
public static boolean getTownDefaultPublic() -
getTownDefaultOpen
public static boolean getTownDefaultOpen() -
getTownDefaultNeutral
public static boolean getTownDefaultNeutral() -
getTownDefaultBoard
-
getNationDefaultOpen
public static boolean getNationDefaultOpen() -
isNationTagSetAutomatically
public static boolean isNationTagSetAutomatically() -
isTownTagSetAutomatically
public static boolean isTownTagSetAutomatically() -
getTownDefaultTax
public static double getTownDefaultTax() -
getTownDefaultShopTax
public static double getTownDefaultShopTax() -
getTownDefaultEmbassyTax
public static double getTownDefaultEmbassyTax() -
getTownDefaultPlotTax
public static double getTownDefaultPlotTax() -
doesPlotTaxNonPaymentSetPlotForSale
public static boolean doesPlotTaxNonPaymentSetPlotForSale() -
getTownDefaultTaxPercentage
public static boolean getTownDefaultTaxPercentage() -
getTownDefaultTaxMinimumTax
public static double getTownDefaultTaxMinimumTax() -
getTownDefaultAllowedToWar
public static boolean getTownDefaultAllowedToWar() -
hasTownLimit
public static boolean hasTownLimit() -
getTownLimit
public static int getTownLimit() -
getMaxPurchasedBlocks
-
getMaxPurchasedBlocks
-
getMaxPurchasedBlocksNode
public static int getMaxPurchasedBlocksNode() -
getMaxClaimRadiusValue
public static int getMaxClaimRadiusValue() -
isUnwantedBiomeClaimingEnabled
public static boolean isUnwantedBiomeClaimingEnabled() -
getUnwantedBiomeThreshold
public static double getUnwantedBiomeThreshold() -
getUnwantedBiomeNames
-
isOceanClaimingBlocked
public static boolean isOceanClaimingBlocked() -
getOceanBlockThreshold
public static double getOceanBlockThreshold() -
isOverClaimingAllowingStolenLand
public static boolean isOverClaimingAllowingStolenLand() -
isOverClaimingPreventedByHomeBlockRadius
public static boolean isOverClaimingPreventedByHomeBlockRadius() -
getOverclaimingTownAgeRequirement
public static long getOverclaimingTownAgeRequirement() -
getOverclaimingCommandCooldownInSeconds
public static int getOverclaimingCommandCooldownInSeconds() -
isOverclaimingWithNationsRequiringEnemy
public static boolean isOverclaimingWithNationsRequiringEnemy() -
isSellingBonusBlocks
-
isBonusBlocksPerTownLevel
public static boolean isBonusBlocksPerTownLevel() -
getPurchasedBonusBlocksCost
public static double getPurchasedBonusBlocksCost() -
getPurchasedBonusBlocksIncreaseValue
public static double getPurchasedBonusBlocksIncreaseValue() -
getPurchasedBonusBlocksMaxPrice
public static double getPurchasedBonusBlocksMaxPrice() -
isTownSpawnPaidToTown
public static boolean isTownSpawnPaidToTown() -
getNationNeutralityCost
-
getNationNeutralityCost
public static double getNationNeutralityCost() -
isNationNeutralityCostMultipliedByNationTownAmount
public static boolean isNationNeutralityCostMultipliedByNationTownAmount() -
getTownNeutralityCost
-
getTownNeutralityCost
public static double getTownNeutralityCost() -
isTownNeutralityCostMultipliedByTownClaimsSize
public static boolean isTownNeutralityCostMultipliedByTownClaimsSize() -
isAllowingOutposts
public static boolean isAllowingOutposts() -
isOutpostsLimitedByLevels
public static boolean isOutpostsLimitedByLevels() -
isOutpostLimitStoppingTeleports
public static boolean isOutpostLimitStoppingTeleports() -
getOutpostCost
public static double getOutpostCost() -
getSwitchMaterials
-
getItemUseMaterials
-
isSwitchMaterial
public static boolean isSwitchMaterial(org.bukkit.Material material, org.bukkit.Location location) -
isItemUseMaterial
public static boolean isItemUseMaterial(org.bukkit.Material material, org.bukkit.Location location) -
getFireSpreadBypassMaterials
-
isFireSpreadBypassMaterial
-
getUnclaimedZoneIgnoreMaterials
-
getProtectedEntityTypes
-
getPotionTypes
-
setProperty
-
setLanguage
-
getProperty
-
getClaimPrice
public static double getClaimPrice() -
getClaimPriceIncreaseValue
public static double getClaimPriceIncreaseValue() -
getMaxClaimPrice
public static double getMaxClaimPrice() -
getClaimRefundPrice
public static double getClaimRefundPrice() -
getTakeoverClaimPrice
public static double getTakeoverClaimPrice() -
getUnclaimedZoneSwitchRights
public static boolean getUnclaimedZoneSwitchRights() -
getEndermanProtect
public static boolean getEndermanProtect() -
getDayInterval
public static long getDayInterval() -
getNewDayTime
public static long getNewDayTime() -
isNewDayDeleting0PlotTowns
public static boolean isNewDayDeleting0PlotTowns() -
getHourInterval
public static long getHourInterval() -
getShortInterval
public static long getShortInterval() -
getNewHourTime
public static long getNewHourTime() -
isAllowingTownSpawn
-
isAllowingPublicTownSpawnTravel
-
isConfigAllowingPublicTownSpawnTravel
public static boolean isConfigAllowingPublicTownSpawnTravel() -
isConfigAllowingPublicNationSpawnTravel
public static boolean isConfigAllowingPublicNationSpawnTravel() -
getDisallowedTownSpawnZones
-
areEnemiesAllowedToSpawnToPeacefulTowns
public static boolean areEnemiesAllowedToSpawnToPeacefulTowns() -
isSpawnWarnConfirmationUsed
public static boolean isSpawnWarnConfirmationUsed() -
isTaxingDaily
public static boolean isTaxingDaily() -
getMaxPlotTax
public static double getMaxPlotTax() -
getMaxTownTax
public static double getMaxTownTax() -
getMaxNationTax
public static double getMaxNationTax() -
getMaxPlotPrice
public static double getMaxPlotPrice() -
getMaxTownTaxPercent
public static double getMaxTownTaxPercent() -
getMaxTownTaxPercentAmount
public static double getMaxTownTaxPercentAmount() -
getMaxNationTaxPercentAmount
public static double getMaxNationTaxPercentAmount() -
getMaxNationConqueredTaxAmount
public static double getMaxNationConqueredTaxAmount() -
getDefaultNationConqueredTaxAmount
public static double getDefaultNationConqueredTaxAmount() -
getMaxNationTaxPercent
public static double getMaxNationTaxPercent() -
isBackingUpDaily
public static boolean isBackingUpDaily() -
isChargingDeath
public static boolean isChargingDeath() -
isDeathPriceType
public static boolean isDeathPriceType() -
isDeathPricePercentBased
public static boolean isDeathPricePercentBased() -
getDeathPricePercentageCap
public static double getDeathPricePercentageCap() -
isDeathPricePercentageCapped
public static boolean isDeathPricePercentageCapped() -
isDeathPricePVPOnly
public static boolean isDeathPricePVPOnly() -
getDeathPrice
public static double getDeathPrice() -
getDeathPriceTown
public static double getDeathPriceTown() -
getDeathPriceNation
public static double getDeathPriceNation() -
isDeletedObjectBalancePaidToOwner
public static boolean isDeletedObjectBalancePaidToOwner() -
isEcoClosedEconomyEnabled
public static boolean isEcoClosedEconomyEnabled() -
isJailingAttackingEnemies
public static boolean isJailingAttackingEnemies() -
getMaxJailedNewJailBehavior
public static int getMaxJailedNewJailBehavior() -
isJailBookEnabled
public static boolean isJailBookEnabled() -
isJailingAttackingOutlaws
public static boolean isJailingAttackingOutlaws() -
getJailedOutlawJailHours
public static int getJailedOutlawJailHours() -
getJailedPOWJailHours
public static int getJailedPOWJailHours() -
getJailedMaxHours
public static int getJailedMaxHours() -
JailAllowsTeleportItems
public static boolean JailAllowsTeleportItems() -
JailDeniesTownLeave
public static boolean JailDeniesTownLeave() -
isAllowingBail
public static boolean isAllowingBail() -
getBailAmount
public static double getBailAmount() -
getBailMaxAmount
public static double getBailMaxAmount() -
initialJailFee
public static double initialJailFee() -
hourlyJailFee
public static double hourlyJailFee() -
getMaxJailedPlayerCount
public static int getMaxJailedPlayerCount() -
getBailAmountMayor
public static double getBailAmountMayor() -
getBailAmountKing
public static double getBailAmountKing() -
doJailPlotsPreventPVP
public static boolean doJailPlotsPreventPVP() -
doesJailingPreventLoggingOut
public static boolean doesJailingPreventLoggingOut() -
newPlayerJailImmunity
public static long newPlayerJailImmunity() -
doesUnjailingTeleportPlayer
public static boolean doesUnjailingTeleportPlayer() -
isDevMode
public static boolean isDevMode() -
setDevMode
public static void setDevMode(boolean choice) -
getDevName
-
getTownUpkeepCost
-
getTownUpkeep
public static double getTownUpkeep() -
isUpkeepByPlot
public static boolean isUpkeepByPlot() -
getPlotBasedUpkeepMinimumAmount
public static double getPlotBasedUpkeepMinimumAmount() -
getPlotBasedUpkeepMaximumAmount
public static double getPlotBasedUpkeepMaximumAmount() -
isTownLevelModifiersAffectingPlotBasedUpkeep
public static boolean isTownLevelModifiersAffectingPlotBasedUpkeep() -
isUpkeepPayingPlots
public static boolean isUpkeepPayingPlots() -
isNegativePlotTaxAllowed
public static boolean isNegativePlotTaxAllowed() -
isNegativeTownTaxAllowed
public static boolean isNegativeTownTaxAllowed() -
isNegativeNationTaxAllowed
public static boolean isNegativeNationTaxAllowed() -
getTownPenaltyUpkeepCost
-
getUpkeepPenalty
public static double getUpkeepPenalty() -
isUpkeepPenaltyByPlot
public static boolean isUpkeepPenaltyByPlot() -
getNationUpkeep
public static double getNationUpkeep() -
getNationUpkeepCost
-
isNationUpkeepPerPlot
public static boolean isNationUpkeepPerPlot() -
isNationUpkeepPerTown
public static boolean isNationUpkeepPerTown() -
getNationDefaultPublic
public static boolean getNationDefaultPublic() -
getNationDefaultBoard
-
getNationDefaultTax
public static double getNationDefaultTax() -
getNationDefaultTaxPercentage
public static boolean getNationDefaultTaxPercentage() -
getNationDefaultTaxMinimumTax
public static double getNationDefaultTaxMinimumTax() -
getFlatFileBackupType
-
getBackupLifeLength
public static long getBackupLifeLength() -
isUsingTowny
public static boolean isUsingTowny() -
isNewWorldClaimable
public static boolean isNewWorldClaimable() -
isPvP
public static boolean isPvP() -
isForcingPvP
public static boolean isForcingPvP() -
isCreatureTramplingCropsDisabled
public static boolean isCreatureTramplingCropsDisabled() -
isWorldMonstersOn
public static boolean isWorldMonstersOn() -
isWildernessMonstersOn
public static boolean isWildernessMonstersOn() -
isExplosions
public static boolean isExplosions() -
isForcingExplosions
public static boolean isForcingExplosions() -
isForcingMonsters
public static boolean isForcingMonsters() -
isFire
public static boolean isFire() -
isForcingFire
public static boolean isForcingFire() -
isDeletingEntitiesOnUnclaim
public static boolean isDeletingEntitiesOnUnclaim() -
getUnclaimDeleteEntityTypes
-
isUsingPlotManagementDelete
public static boolean isUsingPlotManagementDelete() -
getPlotManagementDeleteIds
-
isUsingPlotManagementMayorDelete
public static boolean isUsingPlotManagementMayorDelete() -
getPlotManagementMayorDelete
-
isUsingPlotManagementRevert
public static boolean isUsingPlotManagementRevert() -
getPlotManagementSpeed
public static long getPlotManagementSpeed() -
isUsingPlotManagementWildEntityRegen
public static boolean isUsingPlotManagementWildEntityRegen() -
getPlotManagementWildRegenDelay
public static long getPlotManagementWildRegenDelay() -
isUsingPlotManagementWildBlockRegen
public static boolean isUsingPlotManagementWildBlockRegen() -
getPlotManagementIgnoreIds
-
getRevertOnUnclaimWhitelistMaterials
-
isTownRespawning
public static boolean isTownRespawning() -
isTownRespawningInOtherWorlds
public static boolean isTownRespawningInOtherWorlds() -
isRespawnAnchorHigherPrecedence
public static boolean isRespawnAnchorHigherPrecedence() -
getHomeBlockMovementCooldownHours
public static int getHomeBlockMovementCooldownHours() -
getHomeBlockMovementDistanceInTownBlocks
public static int getHomeBlockMovementDistanceInTownBlocks() -
getMaxResidentsPerTown
public static int getMaxResidentsPerTown() -
getMaxResidentsPerTownCapitalOverride
public static int getMaxResidentsPerTownCapitalOverride() -
getMaxResidentsForTown
-
isTownyUpdating
-
isTownyUpToDate
-
getLastRunVersion
-
getLastRunVersion
-
setLastRunVersion
-
getMinDistanceFromTownHomeblocks
public static int getMinDistanceFromTownHomeblocks() -
getMinDistanceForOutpostsFromPlot
public static int getMinDistanceForOutpostsFromPlot() -
getMaxDistanceForOutpostsFromTown
public static int getMaxDistanceForOutpostsFromTown() -
getMinDistanceFromTownPlotblocks
public static int getMinDistanceFromTownPlotblocks() -
getMaxDistanceForTownMerge
public static int getMaxDistanceForTownMerge() -
getBaseCostForTownMerge
public static int getBaseCostForTownMerge() -
getPercentageCostPerPlot
public static int getPercentageCostPerPlot() -
isMinDistanceIgnoringTownsInSameNation
public static boolean isMinDistanceIgnoringTownsInSameNation() -
isMinDistanceIgnoringTownsInAlliedNation
public static boolean isMinDistanceIgnoringTownsInAlliedNation() -
getMinDistanceBetweenHomeblocks
public static int getMinDistanceBetweenHomeblocks() -
getMaxDistanceBetweenHomeblocks
public static int getMaxDistanceBetweenHomeblocks() -
getMaxResidentPlots
-
getMaxResidentExtraPlots
-
getMaxResidentOutposts
-
getPermFlag_Resident_Friend_Build
public static boolean getPermFlag_Resident_Friend_Build() -
getPermFlag_Resident_Friend_Destroy
public static boolean getPermFlag_Resident_Friend_Destroy() -
getPermFlag_Resident_Friend_ItemUse
public static boolean getPermFlag_Resident_Friend_ItemUse() -
getPermFlag_Resident_Friend_Switch
public static boolean getPermFlag_Resident_Friend_Switch() -
getPermFlag_Resident_Town_Build
public static boolean getPermFlag_Resident_Town_Build() -
getPermFlag_Resident_Town_Destroy
public static boolean getPermFlag_Resident_Town_Destroy() -
getPermFlag_Resident_Town_ItemUse
public static boolean getPermFlag_Resident_Town_ItemUse() -
getPermFlag_Resident_Town_Switch
public static boolean getPermFlag_Resident_Town_Switch() -
getPermFlag_Resident_Ally_Build
public static boolean getPermFlag_Resident_Ally_Build() -
getPermFlag_Resident_Ally_Destroy
public static boolean getPermFlag_Resident_Ally_Destroy() -
getPermFlag_Resident_Ally_ItemUse
public static boolean getPermFlag_Resident_Ally_ItemUse() -
getPermFlag_Resident_Ally_Switch
public static boolean getPermFlag_Resident_Ally_Switch() -
getPermFlag_Resident_Outsider_Build
public static boolean getPermFlag_Resident_Outsider_Build() -
getPermFlag_Resident_Outsider_Destroy
public static boolean getPermFlag_Resident_Outsider_Destroy() -
getPermFlag_Resident_Outsider_ItemUse
public static boolean getPermFlag_Resident_Outsider_ItemUse() -
getPermFlag_Resident_Outsider_Switch
public static boolean getPermFlag_Resident_Outsider_Switch() -
getPermFlag_Town_Default_PVP
public static boolean getPermFlag_Town_Default_PVP() -
getPermFlag_Town_Default_FIRE
public static boolean getPermFlag_Town_Default_FIRE() -
getPermFlag_Town_Default_Explosion
public static boolean getPermFlag_Town_Default_Explosion() -
getPermFlag_Town_Default_Mobs
public static boolean getPermFlag_Town_Default_Mobs() -
getPermFlag_Town_Resident_Build
public static boolean getPermFlag_Town_Resident_Build() -
getPermFlag_Town_Resident_Destroy
public static boolean getPermFlag_Town_Resident_Destroy() -
getPermFlag_Town_Resident_ItemUse
public static boolean getPermFlag_Town_Resident_ItemUse() -
getPermFlag_Town_Resident_Switch
public static boolean getPermFlag_Town_Resident_Switch() -
getPermFlag_Town_Nation_Build
public static boolean getPermFlag_Town_Nation_Build() -
getPermFlag_Town_Nation_Destroy
public static boolean getPermFlag_Town_Nation_Destroy() -
getPermFlag_Town_Nation_ItemUse
public static boolean getPermFlag_Town_Nation_ItemUse() -
getPermFlag_Town_Nation_Switch
public static boolean getPermFlag_Town_Nation_Switch() -
getPermFlag_Town_Ally_Build
public static boolean getPermFlag_Town_Ally_Build() -
getPermFlag_Town_Ally_Destroy
public static boolean getPermFlag_Town_Ally_Destroy() -
getPermFlag_Town_Ally_ItemUse
public static boolean getPermFlag_Town_Ally_ItemUse() -
getPermFlag_Town_Ally_Switch
public static boolean getPermFlag_Town_Ally_Switch() -
getPermFlag_Town_Outsider_Build
public static boolean getPermFlag_Town_Outsider_Build() -
getPermFlag_Town_Outsider_Destroy
public static boolean getPermFlag_Town_Outsider_Destroy() -
getPermFlag_Town_Outsider_ItemUse
public static boolean getPermFlag_Town_Outsider_ItemUse() -
getPermFlag_Town_Outsider_Switch
public static boolean getPermFlag_Town_Outsider_Switch() -
getDefaultResidentPermission
public static boolean getDefaultResidentPermission(TownBlockOwner owner, TownyPermission.ActionType type) -
getDefaultNationPermission
public static boolean getDefaultNationPermission(TownBlockOwner owner, TownyPermission.ActionType type) -
getDefaultAllyPermission
public static boolean getDefaultAllyPermission(TownBlockOwner owner, TownyPermission.ActionType type) -
getDefaultOutsiderPermission
public static boolean getDefaultOutsiderPermission(TownBlockOwner owner, TownyPermission.ActionType type) -
getDefaultPermission
public static boolean getDefaultPermission(TownBlockOwner owner, TownyPermission.PermLevel level, TownyPermission.ActionType type) -
getAcceptCommand
-
getDenyCommand
-
getConfirmCommand
-
getCancelCommand
-
getOutsidersPreventPVPToggle
public static boolean getOutsidersPreventPVPToggle() -
getOutsidersUnclaimingTownBlocks
public static boolean getOutsidersUnclaimingTownBlocks() -
isForcePvpNotAffectingHomeblocks
public static boolean isForcePvpNotAffectingHomeblocks() -
isPVPAlwaysAllowedForAdmins
public static boolean isPVPAlwaysAllowedForAdmins() -
getConfirmationTimeoutSeconds
public static int getConfirmationTimeoutSeconds() -
getTownInviteCooldown
public static long getTownInviteCooldown() -
getInviteExpirationTime
public static long getInviteExpirationTime() -
isAppendingToLog
public static boolean isAppendingToLog() -
getTownyTopSize
public static int getTownyTopSize() -
getNameFilterRegex
-
getNameCheckRegex
-
getStringCheckRegex
-
getNameRemoveRegex
-
getTeleportWarmupTime
public static int getTeleportWarmupTime() -
isMovementCancellingSpawnWarmup
public static boolean isMovementCancellingSpawnWarmup() -
isDamageCancellingSpawnWarmup
public static boolean isDamageCancellingSpawnWarmup() -
isTeleportWarmupUsingTitleMessage
public static boolean isTeleportWarmupUsingTitleMessage() -
isTeleportWarmupShowingParticleEffect
public static boolean isTeleportWarmupShowingParticleEffect() -
getSpawnCooldownTime
public static int getSpawnCooldownTime() -
getPVPCoolDownTime
public static int getPVPCoolDownTime() -
getPeacefulCoolDownTime
public static int getPeacefulCoolDownTime() -
getTownDeleteCoolDownTime
public static int getTownDeleteCoolDownTime() -
getTownUnclaimCoolDownTime
public static int getTownUnclaimCoolDownTime() -
getTownAccountPrefix
-
getNationAccountPrefix
-
getTownBankCap
-
getTownBankCap
public static double getTownBankCap() -
getTownMinDeposit
public static int getTownMinDeposit() -
getTownMinWithdraw
public static int getTownMinWithdraw() -
getNationBankCap
-
getNationBankCap
public static double getNationBankCap() -
getTownBankAllowWithdrawls
public static boolean getTownBankAllowWithdrawls() -
SetTownBankAllowWithdrawls
public static void SetTownBankAllowWithdrawls(boolean newSetting) -
getNationBankAllowWithdrawls
public static boolean getNationBankAllowWithdrawls() -
getNationMinDeposit
public static int getNationMinDeposit() -
getNationMinWithdraw
public static int getNationMinWithdraw() -
isBankActionDisallowedOutsideTown
public static boolean isBankActionDisallowedOutsideTown() -
isBankActionLimitedToBankPlots
public static boolean isBankActionLimitedToBankPlots() -
doHomeblocksNoLongerWorkWhenATownHasBankPlots
public static boolean doHomeblocksNoLongerWorkWhenATownHasBankPlots() -
SetNationBankAllowWithdrawls
public static void SetNationBankAllowWithdrawls(boolean newSetting) -
getMaxNumResidentsWithoutNation
public static int getMaxNumResidentsWithoutNation() -
getNumResidentsJoinNation
public static int getNumResidentsJoinNation() -
getNumResidentsCreateNation
public static int getNumResidentsCreateNation() -
isRefundNationDisbandLowResidents
public static boolean isRefundNationDisbandLowResidents() -
getNationRequiresProximity
Deprecated.since 0.100.0.9, usegetNationProximityToCapital()
instead.- Returns:
- getNationProximityToCapital()
-
getNationProximityToCapital
public static double getNationProximityToCapital() -
getNationProximityToOtherNationTowns
public static double getNationProximityToOtherNationTowns() -
getNationProximityAbsoluteMaximum
public static double getNationProximityAbsoluteMaximum() -
getFarmAnimals
-
getKeepInventoryInTowns
public static boolean getKeepInventoryInTowns() -
getKeepInventoryInOwnTown
public static boolean getKeepInventoryInOwnTown() -
getKeepInventoryInAlliedTowns
public static boolean getKeepInventoryInAlliedTowns() -
getKeepExperienceInArenas
public static boolean getKeepExperienceInArenas() -
getKeepInventoryInArenas
public static boolean getKeepInventoryInArenas() -
getKeepExperienceInTowns
public static boolean getKeepExperienceInTowns() -
isNotificationUsingTitles
public static boolean isNotificationUsingTitles() -
getAmountOfResidentsForOutpost
public static int getAmountOfResidentsForOutpost() -
getMaximumInvitesSentTown
public static int getMaximumInvitesSentTown() -
getMaximumInvitesSentNation
public static int getMaximumInvitesSentNation() -
getMaximumRequestsSentNation
public static int getMaximumRequestsSentNation() -
getMaximumInvitesReceivedResident
public static int getMaximumInvitesReceivedResident() -
getMaximumInvitesReceivedTown
public static int getMaximumInvitesReceivedTown() -
getMaximumRequestsReceivedNation
public static int getMaximumRequestsReceivedNation() -
getNationZonesEnabled
public static boolean getNationZonesEnabled() -
getNationZonesCapitalsOnly
public static boolean getNationZonesCapitalsOnly() -
getNationZonesWarDisables
public static boolean getNationZonesWarDisables() -
getNationZonesShowNotifications
public static boolean getNationZonesShowNotifications() -
getNationZonesCapitalBonusSize
public static int getNationZonesCapitalBonusSize() -
isNationSpawnOnlyAllowedInCapital
public static boolean isNationSpawnOnlyAllowedInCapital() -
getMaxTownsPerNation
public static int getMaxTownsPerNation() -
getMaxResidentsPerNation
public static int getMaxResidentsPerNation() -
getSpawnTravelCost
public static double getSpawnTravelCost() -
isPublicSpawnCostAffectedByTownSpawncost
public static boolean isPublicSpawnCostAffectedByTownSpawncost() -
isAllySpawningRequiringPublicStatus
public static boolean isAllySpawningRequiringPublicStatus() -
trustedResidentsGetToSpawnToTown
public static boolean trustedResidentsGetToSpawnToTown() -
isPromptingNewResidentsToTownSpawn
public static boolean isPromptingNewResidentsToTownSpawn() -
getNotificationTitlesTownTitle
-
getNotificationTitlesTownSubtitle
-
getNotificationTitlesWildTitle
-
getNotificationTitlesWildSubtitle
-
getNotificationTitlesNationNameFormat
-
getNotificationTitlesNationCapitalFormat
-
getNotificationTitlesDurationTicks
public static int getNotificationTitlesDurationTicks() -
getTownRenameCost
public static double getTownRenameCost() -
getNationRenameCost
public static double getNationRenameCost() -
getTownSetMapColourCost
public static double getTownSetMapColourCost() -
getNationSetMapColourCost
public static double getNationSetMapColourCost() -
isRemovingKillerBunny
public static boolean isRemovingKillerBunny() -
isSkippingRemovalOfNamedMobs
public static boolean isSkippingRemovalOfNamedMobs() -
getJailBlacklistedCommands
-
getPAPIFormattingBoth
-
getPAPIFormattingTown
-
getPAPIFormattingNation
-
getPAPIFormattingNomad
-
getPAPIFormattingResident
-
getPAPIFormattingMayor
-
getPAPIFormattingKing
-
getPAPILeaderboardFormat
-
getPAPIRelationNone
-
getPAPIRelationNoTown
-
getPAPIRelationSameTown
-
getPAPIRelationSameNation
-
getPAPIRelationConqueredTown
-
getPAPIRelationAlly
-
getPAPIRelationEnemy
-
getMaxDistanceFromTownSpawnForInvite
public static int getMaxDistanceFromTownSpawnForInvite() -
getTownDisplaysXYZ
public static boolean getTownDisplaysXYZ() -
isTownListRandom
public static boolean isTownListRandom() -
getOrderOfMayoralSuccession
-
isWarAllowed
public static boolean isWarAllowed() -
isNotificationsTownNamesVerbose
public static boolean isNotificationsTownNamesVerbose() -
getNationColorsMap
-
getTownColorsMap
-
getDefaultNationMapColor
-
getDefaultTownMapColor
-
isTownBankruptcyEnabled
public static boolean isTownBankruptcyEnabled() -
getDebtCapMaximum
public static double getDebtCapMaximum() -
getDebtCapOverride
public static double getDebtCapOverride() -
isDebtCapDeterminedByTownLevel
public static boolean isDebtCapDeterminedByTownLevel() -
isDebtCapAFixedNumberOfDays
public static boolean isDebtCapAFixedNumberOfDays() -
getDebtCapFixedDays
public static int getDebtCapFixedDays() -
isUpkeepDeletingTownsThatReachDebtCap
public static boolean isUpkeepDeletingTownsThatReachDebtCap() -
canBankruptTownsPayForNeutrality
public static boolean canBankruptTownsPayForNeutrality() -
isNationTaxKickingTownsThatReachDebtCap
public static boolean isNationTaxKickingTownsThatReachDebtCap() -
doesNationTaxDeleteConqueredTownsWhichCannotPay
public static boolean doesNationTaxDeleteConqueredTownsWhichCannotPay() -
doBankruptTownsPayNationTax
public static boolean doBankruptTownsPayNationTax() -
canOutlawsEnterTowns
public static boolean canOutlawsEnterTowns() -
canOutlawsTeleportOutOfTowns
public static boolean canOutlawsTeleportOutOfTowns() -
canOutlawsUseTeleportItems
public static boolean canOutlawsUseTeleportItems() -
areNewOutlawsTeleportedAway
public static boolean areNewOutlawsTeleportedAway() -
getOutlawTeleportWarmup
public static int getOutlawTeleportWarmup() -
getOutlawTeleportWorld
-
doTownsGetWarnedOnOutlaw
public static boolean doTownsGetWarnedOnOutlaw() -
getOutlawWarningMessageCooldown
public static int getOutlawWarningMessageCooldown() -
getOutlawBlacklistedCommands
-
getWarBlacklistedCommands
-
getVisualizedSpawnPointsEnabled
public static boolean getVisualizedSpawnPointsEnabled() -
getBlacklistedNames
-
doesFrostWalkerRequireBuildPerms
public static boolean doesFrostWalkerRequireBuildPerms() -
isPlayerCropTramplePrevented
public static boolean isPlayerCropTramplePrevented() -
isNotificationsAppearingOnBossbar
public static boolean isNotificationsAppearingOnBossbar() -
allowTownCommandBlacklisting
public static boolean allowTownCommandBlacklisting() -
getTownBlacklistedCommands
-
getPlayerOwnedPlotLimitedCommands
-
getPreventFluidGriefingEnabled
public static boolean getPreventFluidGriefingEnabled() -
getMaxTagLength
public static int getMaxTagLength() -
getTownAutomaticCapitalisationEnabled
public static boolean getTownAutomaticCapitalisationEnabled() -
getTouristBlockedCommands
-
doTrustedResidentsBypassTownBlockedCommands
public static boolean doTrustedResidentsBypassTownBlockedCommands() -
doAlliesBypassTownBlockedCommands
public static boolean doAlliesBypassTownBlockedCommands() -
isContextsEnabled
public static boolean isContextsEnabled() -
isShowingUpdateNotifications
public static boolean isShowingUpdateNotifications() -
isUpdateNotificationsMajorOnly
public static boolean isUpdateNotificationsMajorOnly() -
getMaxNationAllies
public static int getMaxNationAllies() -
getBankHistoryBookFormat
-
getTownRuinsEnabled
public static boolean getTownRuinsEnabled() -
getTownRuinsMaxDurationHours
public static int getTownRuinsMaxDurationHours() -
getTownRuinsMinDurationHours
public static int getTownRuinsMinDurationHours() -
getTownRuinsReclaimEnabled
public static boolean getTownRuinsReclaimEnabled() -
getEcoPriceReclaimTown
public static double getEcoPriceReclaimTown() -
areRuinsMadePublic
public static boolean areRuinsMadePublic() -
areRuinsMadeOpen
public static boolean areRuinsMadeOpen() -
areRuinedTownsBanksPaidToNation
public static boolean areRuinedTownsBanksPaidToNation() -
doRuinsPlotPermissionsProgressivelyAllowAll
public static boolean doRuinsPlotPermissionsProgressivelyAllowAll() -
saveConfig
public static void saveConfig() -
getSpawnProtectionDuration
public static long getSpawnProtectionDuration() -
isUsingWebMapStatusScreens
public static boolean isUsingWebMapStatusScreens() -
isUsingWorldKeyForWorldName
public static boolean isUsingWorldKeyForWorldName() -
getWebMapUrl
-
getConfigTownLevel
-
getConfigNationLevel
-
isLanguageEnabled
-
doCapitalsPayNationTax
public static boolean doCapitalsPayNationTax() -
isContextEnabled
-
getRespawnProtectionAllowPickup
public static boolean getRespawnProtectionAllowPickup() -
getNotificationsAppearAs
-
areNumbersAllowedInTownNames
public static boolean areNumbersAllowedInTownNames() -
areNumbersAllowedInNationNames
public static boolean areNumbersAllowedInNationNames() -
areLevelTypeLimitsConfigured
@Internal public static boolean areLevelTypeLimitsConfigured() -
homeBlockMapSymbol
-
outpostMapSymbol
-
forSaleMapSymbol
-
wildernessMapSymbol
-
asciiMapHeight
public static int asciiMapHeight() -
asciiMapWidth
public static int asciiMapWidth() -
addReloadListener
public static void addReloadListener(org.bukkit.NamespacedKey key, @NotNull @NotNull Consumer<CommentedConfiguration> consumer) -
addReloadListener
public static void addReloadListener(org.bukkit.NamespacedKey key, @NotNull @NotNull Runnable runnable) -
removeReloadListener
public static void removeReloadListener(@NotNull @NotNull org.bukkit.NamespacedKey key) -
doesNewDayUseTimer
public static boolean doesNewDayUseTimer() -
getTownUnkickableRanks
-
doTrustedPlayersGetPermsOnPersonallyOwnedLand
public static boolean doTrustedPlayersGetPermsOnPersonallyOwnedLand() -
areProtectedEntitiesProtectedAgainstMobs
public static boolean areProtectedEntitiesProtectedAgainstMobs() -
getBossBarNotificationColor
-
getBossBarNotificationOverlay
-
getBossBarNotificationProgress
public static float getBossBarNotificationProgress() -
getNewTownMinDistanceFromTownPlots
public static int getNewTownMinDistanceFromTownPlots() -
getNewTownMinDistanceFromTownHomeblocks
public static int getNewTownMinDistanceFromTownHomeblocks() -
getMinAdjacentBlocks
public static int getMinAdjacentBlocks() -
isDeletingOldResidentsRemovingTownOnly
public static boolean isDeletingOldResidentsRemovingTownOnly() -
disableMySQLBackupWarning
public static boolean disableMySQLBackupWarning() -
isTownyPreventingProtectedMobsEnteringBoatsInTown
public static boolean isTownyPreventingProtectedMobsEnteringBoatsInTown() -
coreProtectSupport
public static boolean coreProtectSupport() -
getDefaultResidentAbout
-
maxBuyTownPrice
public static double maxBuyTownPrice()
-
getNationLevelWithModifier(int)
instead.