Class TownySettings

java.lang.Object
com.palmergames.bukkit.towny.TownySettings

public class TownySettings extends Object
  • 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, int nationCapitalBonusOutpostLimit)
    • loadTownLevelConfig

      public static void loadTownLevelConfig() throws TownyException
      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

      public static void loadNationLevelConfig() throws TownyException
      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

      public static TownySettings.TownLevel getTownLevel(int numResidents)
    • getTownLevel

      public static TownySettings.TownLevel getTownLevel(Town town)
    • getTownLevel

      @Deprecated public static TownySettings.TownLevel getTownLevel(Town town, int residents)
      Deprecated.
      since 0.99.6.3 use getTownLevelWithModifier(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

      public static TownySettings.TownLevel getTownLevelWithModifier(int modifier, Town town)
    • getTownLevelFromGivenInt

      @Internal public static int getTownLevelFromGivenInt(int threshold, Town town)
      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

      public static TownySettings.NationLevel getNationLevel(int levelNumber)
    • getNationLevel

      public static TownySettings.NationLevel getNationLevel(Nation nation)
    • getNationLevel

      @Deprecated public static TownySettings.NationLevel getNationLevel(Nation nation, int residents)
      Deprecated.
      since 0.99.6.2 use getNationLevelWithModifier(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

      public static TownySettings.NationLevel getNationLevelWithModifier(int modifier)
    • 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

      public static CommentedConfiguration getConfig()
    • loadConfig

      public static void loadConfig(Path configPath, String version)
    • loadDefaultConfig

      @VisibleForTesting public static void loadDefaultConfig()
    • toEntityTypeSet

      public static Set<org.bukkit.entity.EntityType> toEntityTypeSet(List<String> entityList)
    • toMaterialSet

      public static Collection<org.bukkit.Material> toMaterialSet(List<String> materialList)
    • sendError

      public static void sendError(String msg)
    • getSpawnLevel

      public static SpawnLevel getSpawnLevel(ConfigNodes node)
    • getBoolean

      public static boolean getBoolean(ConfigNodes node)
    • getDouble

      public static double getDouble(ConfigNodes node)
    • getInt

      public static int getInt(ConfigNodes node)
    • getString

      public static String getString(ConfigNodes node)
    • getString

      public static String getString(String root, String def)
    • getIntArr

      public static List<Integer> getIntArr(ConfigNodes node)
    • getStrArr

      public static List<String> getStrArr(ConfigNodes node)
    • getSeconds

      public static long getSeconds(ConfigNodes node)
    • getMillis

      public static long getMillis(ConfigNodes node)
    • addComment

      public static void addComment(String root, String... comments)
    • getDefaultFarmblocks

      public static String getDefaultFarmblocks()
    • getDefaultWildsblocks

      public static String getDefaultWildsblocks()
    • getKingPrefix

      public static String getKingPrefix(Resident resident)
    • getMayorPrefix

      public static String getMayorPrefix(Resident resident)
    • getCapitalPostfix

      public static String getCapitalPostfix(Town town)
    • getCapitalPostfix

      public static String getCapitalPostfix(Nation nation)
    • getTownPostfix

      public static String getTownPostfix(Town town)
    • getNationPostfix

      public static String getNationPostfix(Nation nation)
    • getNationPrefix

      public static String getNationPrefix(Nation nation)
    • getTownPrefix

      public static String getTownPrefix(Town town)
    • getCapitalPrefix

      public static String getCapitalPrefix(Town town)
    • getCapitalPrefix

      public static String getCapitalPrefix(Nation nation)
    • getKingPostfix

      public static String getKingPostfix(Resident resident)
    • getMayorPostfix

      public static String getMayorPostfix(Resident resident)
    • getNPCPrefix

      public static String getNPCPrefix()
    • getBedUse

      public static boolean getBedUse()
    • getDatabaseVersion

      public static String getDatabaseVersion()
    • setDatabaseVersion

      public static void setDatabaseVersion(String version)
    • getLoadDatabase

      public static String getLoadDatabase()
    • getSaveDatabase

      public static String getSaveDatabase()
    • getSQLHostName

      public static String getSQLHostName()
    • getSQLPort

      public static String getSQLPort()
    • getSQLDBName

      public static String getSQLDBName()
    • getSQLTablePrefix

      public static String getSQLTablePrefix()
    • getSQLUsername

      public static String getSQLUsername()
    • getSQLPassword

      public static String getSQLPassword()
    • getSQLFlags

      public static String getSQLFlags()
    • getMaxPoolSize

      public static int getMaxPoolSize()
    • getMaxLifetime

      public static int getMaxLifetime()
    • getConnectionTimeout

      public static int getConnectionTimeout()
    • getMaxTownBlocks

      public static int getMaxTownBlocks(Town town)
    • getMaxTownBlocks

      public static int getMaxTownBlocks(Town town, int residents)
    • getMaxOutposts

      public static int getMaxOutposts(Town town, int residents)
    • getMaxOutposts

      public static int getMaxOutposts(Town town, int residentsAmount, int townsAmount)
    • getMaxOutposts

      public static int getMaxOutposts(Town town)
    • getMaxBonusBlocks

      public static int getMaxBonusBlocks(Town town, int residents)
    • getMaxBonusBlocks

      public static int getMaxBonusBlocks(Town town)
    • getNationBonusBlocks

      public static int getNationBonusBlocks(Nation nation)
    • getNationBonusBlocks

      public static int getNationBonusBlocks(Town town)
    • 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

      public static boolean isFakeResident(String name)
    • 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

      public static String 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

      public static String getUnclaimedZoneName()
    • doesSenderRequirePermissionNodeToAddColourToTitleOrSurname

      public static boolean doesSenderRequirePermissionNodeToAddColourToTitleOrSurname()
    • getMaxTitleLength

      public static int getMaxTitleLength()
    • getMaxNameLength

      public static int getMaxNameLength()
    • getMaxNameCapitalLetters

      public static int getMaxNameCapitalLetters()
    • getDeleteTime

      public static long getDeleteTime()
    • isDeleteEcoAccount

      public static boolean isDeleteEcoAccount()
    • isDeleteTownlessOnly

      public static boolean isDeleteTownlessOnly()
    • isDeletingOldResidents

      public static boolean isDeletingOldResidents()
    • getDefaultTownName

      public static String getDefaultTownName()
    • getWorldMobRemovalEntities

      public static List<String> getWorldMobRemovalEntities()
    • getWildernessMobRemovalEntities

      public static List<String> getWildernessMobRemovalEntities()
    • getTownMobRemovalEntities

      public static List<String> 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

      public static List<String> getWildExplosionProtectionEntities()
    • getWildExplosionRevertBlockWhitelist

      public static List<String> getWildExplosionRevertBlockWhitelist()
    • getWildExplosionRevertMaterialsToNotOverwrite

      public static List<String> getWildExplosionRevertMaterialsToNotOverwrite()
    • getWildExplosionProtectionBlocks

      public static List<String> getWildExplosionProtectionBlocks()
    • getMobRemovalSpeed

      public static long getMobRemovalSpeed()
    • getHealthRegenSpeed

      public static long getHealthRegenSpeed()
    • hasHealthRegen

      public static boolean hasHealthRegen()
    • preventSaturationLoss

      public static boolean preventSaturationLoss()
    • beaconsForTownMembersOnly

      public static boolean beaconsForTownMembersOnly()
    • beaconsExcludeConqueredTowns

      public static boolean beaconsExcludeConqueredTowns()
    • getTownDefaultPublic

      public static boolean getTownDefaultPublic()
    • getTownDefaultOpen

      public static boolean getTownDefaultOpen()
    • getTownDefaultNeutral

      public static boolean getTownDefaultNeutral()
    • getTownDefaultBoard

      public static String 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

      public static int getMaxPurchasedBlocks(Town town, int residents)
    • getMaxPurchasedBlocks

      public static int getMaxPurchasedBlocks(Town town)
    • getMaxPurchasedBlocksNode

      public static int getMaxPurchasedBlocksNode()
    • getMaxClaimRadiusValue

      public static int getMaxClaimRadiusValue()
    • isUnwantedBiomeClaimingEnabled

      public static boolean isUnwantedBiomeClaimingEnabled()
    • getUnwantedBiomeThreshold

      public static double getUnwantedBiomeThreshold()
    • getUnwantedBiomeNames

      public static List<String> 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

      public static boolean isSellingBonusBlocks(Town town)
    • 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

      public static double getNationNeutralityCost(Nation nation)
    • getNationNeutralityCost

      public static double getNationNeutralityCost()
    • isNationNeutralityCostMultipliedByNationTownAmount

      public static boolean isNationNeutralityCostMultipliedByNationTownAmount()
    • getTownNeutralityCost

      public static double getTownNeutralityCost(Town town)
    • 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

      public static Set<org.bukkit.Material> getSwitchMaterials()
    • getItemUseMaterials

      public static Set<org.bukkit.Material> 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

      public static List<String> getFireSpreadBypassMaterials()
    • isFireSpreadBypassMaterial

      public static boolean isFireSpreadBypassMaterial(String mat)
    • getUnclaimedZoneIgnoreMaterials

      public static Collection<org.bukkit.Material> getUnclaimedZoneIgnoreMaterials()
    • getProtectedEntityTypes

      public static List<Class<?>> getProtectedEntityTypes()
    • getPotionTypes

      public static List<String> getPotionTypes()
    • setProperty

      public static void setProperty(String root, Object value)
    • setLanguage

      public static void setLanguage(String lang)
    • getProperty

      public static Object getProperty(String root)
    • 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

      public static SpawnLevel isAllowingTownSpawn()
    • isAllowingPublicTownSpawnTravel

      public static SpawnLevel isAllowingPublicTownSpawnTravel()
    • isConfigAllowingPublicTownSpawnTravel

      public static boolean isConfigAllowingPublicTownSpawnTravel()
    • isConfigAllowingPublicNationSpawnTravel

      public static boolean isConfigAllowingPublicNationSpawnTravel()
    • getDisallowedTownSpawnZones

      public static List<String> 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

      public static String getDevName()
    • getTownUpkeepCost

      public static double getTownUpkeepCost(Town town)
    • 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

      public static double getTownPenaltyUpkeepCost(Town town)
    • getUpkeepPenalty

      public static double getUpkeepPenalty()
    • isUpkeepPenaltyByPlot

      public static boolean isUpkeepPenaltyByPlot()
    • getPerOutpostUpkeepCost

      public static double getPerOutpostUpkeepCost()
    • getNationUpkeep

      public static double getNationUpkeep()
    • getNationUpkeepCost

      public static double getNationUpkeepCost(Nation nation)
    • isNationUpkeepPerPlot

      public static boolean isNationUpkeepPerPlot()
    • isNationUpkeepPerTown

      public static boolean isNationUpkeepPerTown()
    • getNationDefaultPublic

      public static boolean getNationDefaultPublic()
    • getNationDefaultBoard

      public static String getNationDefaultBoard()
    • getNationDefaultTax

      public static double getNationDefaultTax()
    • getNationDefaultTaxPercentage

      public static boolean getNationDefaultTaxPercentage()
    • getNationDefaultTaxMinimumTax

      public static double getNationDefaultTaxMinimumTax()
    • getFlatFileBackupType

      public static String 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

      public static List<String> getUnclaimDeleteEntityTypes()
    • isUsingPlotManagementDelete

      public static boolean isUsingPlotManagementDelete()
    • getPlotManagementDeleteIds

      public static Collection<org.bukkit.Material> getPlotManagementDeleteIds()
    • isUsingPlotManagementMayorDelete

      public static boolean isUsingPlotManagementMayorDelete()
    • getPlotManagementMayorDelete

      public static Collection<org.bukkit.Material> 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

      public static Collection<org.bukkit.Material> getPlotManagementIgnoreIds()
    • getRevertOnUnclaimWhitelistMaterials

      public static Collection<org.bukkit.Material> getRevertOnUnclaimWhitelistMaterials()
    • isTownRespawning

      public static boolean isTownRespawning()
    • isTownRespawningInOtherWorlds

      public static boolean isTownRespawningInOtherWorlds()
    • isRespawnAnchorHigherPrecedence

      public static boolean isRespawnAnchorHigherPrecedence()
    • isConqueredTownsDeniedNationSpawn

      public static boolean isConqueredTownsDeniedNationSpawn()
    • getHomeBlockMovementCooldownHours

      public static int getHomeBlockMovementCooldownHours()
    • getHomeBlockMovementDistanceInTownBlocks

      public static int getHomeBlockMovementDistanceInTownBlocks()
    • getMaxResidentsPerTown

      public static int getMaxResidentsPerTown()
    • getMaxResidentsPerTownCapitalOverride

      public static int getMaxResidentsPerTownCapitalOverride()
    • getMaxResidentsForTown

      public static int getMaxResidentsForTown(Town town)
    • isTownyUpdating

      public static boolean isTownyUpdating(String currentVersion)
    • isTownyUpToDate

      public static boolean isTownyUpToDate(String currentVersion)
    • getLastRunVersion

      public static String getLastRunVersion(String currentVersion)
    • getLastRunVersion

      public static String getLastRunVersion()
    • setLastRunVersion

      public static void setLastRunVersion(String currentVersion)
    • 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

      public static int getMaxResidentPlots(Resident resident)
    • getMaxResidentExtraPlots

      public static int getMaxResidentExtraPlots(Resident resident)
    • getMaxResidentOutposts

      public static int getMaxResidentOutposts(Resident resident)
    • 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

      public static String getAcceptCommand()
    • getDenyCommand

      public static String getDenyCommand()
    • getConfirmCommand

      public static String getConfirmCommand()
    • getCancelCommand

      public static String 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

      public static String getNameFilterRegex()
    • getNameCheckRegex

      public static String getNameCheckRegex()
    • getStringCheckRegex

      public static String getStringCheckRegex()
    • getNameRemoveRegex

      public static String 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

      public static String getTownAccountPrefix()
    • getNationAccountPrefix

      public static String getNationAccountPrefix()
    • getTownBankCap

      public static double getTownBankCap(Town town)
    • getTownBankCap

      public static double getTownBankCap()
    • getTownMinDeposit

      public static int getTownMinDeposit()
    • getTownMinWithdraw

      public static int getTownMinWithdraw()
    • getNationBankCap

      public static double getNationBankCap(Nation nation)
    • 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 public static double getNationRequiresProximity()
      Deprecated.
      since 0.100.0.9, use getNationProximityToCapital() instead.
      Returns:
      getNationProximityToCapital()
    • getNationProximityToCapital

      public static double getNationProximityToCapital()
    • getNationProximityToOtherNationTowns

      public static double getNationProximityToOtherNationTowns()
    • getNationProximityAbsoluteMaximum

      public static double getNationProximityAbsoluteMaximum()
    • getFarmAnimals

      public static List<String> getFarmAnimals()
    • getKeepInventoryInTowns

      public static boolean getKeepInventoryInTowns()
    • getKeepInventoryInOwnTown

      public static boolean getKeepInventoryInOwnTown()
    • getKeepInventoryInAlliedTowns

      public static boolean getKeepInventoryInAlliedTowns()
    • getKeepExperienceInArenas

      public static boolean getKeepExperienceInArenas()
    • arenaPlotPreventArmourDegrade

      public static boolean arenaPlotPreventArmourDegrade()
    • 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()
    • getNationZonesSkipConqueredTowns

      public static boolean getNationZonesSkipConqueredTowns()
    • getNationZonesProtectsConqueredTowns

      public static boolean getNationZonesProtectsConqueredTowns()
    • 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

      public static String getNotificationTitlesTownTitle()
    • getNotificationTitlesTownSubtitle

      public static String getNotificationTitlesTownSubtitle()
    • getNotificationTitlesWildTitle

      public static String getNotificationTitlesWildTitle()
    • getNotificationTitlesWildSubtitle

      public static String getNotificationTitlesWildSubtitle()
    • getNotificationTitlesNationNameFormat

      public static String getNotificationTitlesNationNameFormat()
    • getNotificationTitlesNationCapitalFormat

      public static String 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

      public static List<String> getJailBlacklistedCommands()
    • getPAPIFormattingBoth

      public static String getPAPIFormattingBoth()
    • getPAPIFormattingTown

      public static String getPAPIFormattingTown()
    • getPAPIFormattingNation

      public static String getPAPIFormattingNation()
    • getPAPIFormattingNomad

      public static String getPAPIFormattingNomad()
    • getPAPIFormattingResident

      public static String getPAPIFormattingResident()
    • getPAPIFormattingMayor

      public static String getPAPIFormattingMayor()
    • getPAPIFormattingKing

      public static String getPAPIFormattingKing()
    • getPAPILeaderboardFormat

      public static String getPAPILeaderboardFormat()
    • getPAPIRelationNone

      public static String getPAPIRelationNone()
    • getPAPIRelationNoTown

      public static String getPAPIRelationNoTown()
    • getPAPIRelationSameTown

      public static String getPAPIRelationSameTown()
    • getPAPIRelationSameNation

      public static String getPAPIRelationSameNation()
    • getPAPIRelationConqueredTown

      public static String getPAPIRelationConqueredTown()
    • getPAPIRelationAlly

      public static String getPAPIRelationAlly()
    • getPAPIRelationEnemy

      public static String getPAPIRelationEnemy()
    • getMaxDistanceFromTownSpawnForInvite

      public static int getMaxDistanceFromTownSpawnForInvite()
    • getTownDisplaysXYZ

      public static boolean getTownDisplaysXYZ()
    • isTownListRandom

      public static boolean isTownListRandom()
    • getOrderOfMayoralSuccession

      public static List<String> getOrderOfMayoralSuccession()
    • isWarAllowed

      public static boolean isWarAllowed()
    • isNotificationsTownNamesVerbose

      public static boolean isNotificationsTownNamesVerbose()
    • getNationColorsMap

      public static Map<String,String> getNationColorsMap()
    • getTownColorsMap

      public static Map<String,String> getTownColorsMap()
    • getDefaultNationMapColor

      public static String getDefaultNationMapColor()
    • getDefaultTownMapColor

      public static String 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

      public static String getOutlawTeleportWorld()
    • doTownsGetWarnedOnOutlaw

      public static boolean doTownsGetWarnedOnOutlaw()
    • getOutlawWarningMessageCooldown

      public static int getOutlawWarningMessageCooldown()
    • getOutlawBlacklistedCommands

      public static List<String> getOutlawBlacklistedCommands()
    • getWarBlacklistedCommands

      public static List<String> getWarBlacklistedCommands()
    • getVisualizedSpawnPointsEnabled

      public static boolean getVisualizedSpawnPointsEnabled()
    • getBlacklistedNames

      public static List<String> getBlacklistedNames()
    • doesFrostWalkerRequireBuildPerms

      public static boolean doesFrostWalkerRequireBuildPerms()
    • isPlayerCropTramplePrevented

      public static boolean isPlayerCropTramplePrevented()
    • isNotificationsAppearingOnBossbar

      public static boolean isNotificationsAppearingOnBossbar()
    • allowTownCommandBlacklisting

      public static boolean allowTownCommandBlacklisting()
    • getTownBlacklistedCommands

      public static List<String> getTownBlacklistedCommands()
    • getPlayerOwnedPlotLimitedCommands

      public static List<String> getPlayerOwnedPlotLimitedCommands()
    • getPreventFluidGriefingEnabled

      public static boolean getPreventFluidGriefingEnabled()
    • getMaxTagLength

      public static int getMaxTagLength()
    • getTownAutomaticCapitalisationEnabled

      public static boolean getTownAutomaticCapitalisationEnabled()
    • getTouristBlockedCommands

      public static List<String> 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()
    • areConqueredTownsConsideredAllied

      public static boolean areConqueredTownsConsideredAllied()
    • getBankHistoryBookFormat

      public static String 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

      public static String getWebMapUrl()
    • isSafeTeleportUsed

      public static boolean isSafeTeleportUsed()
    • getConfigTownLevel

      public static Map<Integer,TownySettings.TownLevel> getConfigTownLevel()
    • getConfigNationLevel

      public static Map<Integer,TownySettings.NationLevel> getConfigNationLevel()
    • isLanguageEnabled

      public static boolean isLanguageEnabled(@NotNull @NotNull String locale)
    • doMayorsPayTownTax

      public static boolean doMayorsPayTownTax()
    • doCapitalsPayNationTax

      public static boolean doCapitalsPayNationTax()
    • isContextEnabled

      public static boolean isContextEnabled(String id)
    • getRespawnProtectionAllowPickup

      public static boolean getRespawnProtectionAllowPickup()
    • getNotificationsAppearAs

      public static String getNotificationsAppearAs()
    • areNumbersAllowedInTownNames

      public static boolean areNumbersAllowedInTownNames()
    • areNumbersAllowedInNationNames

      public static boolean areNumbersAllowedInNationNames()
    • areLevelTypeLimitsConfigured

      @Internal public static boolean areLevelTypeLimitsConfigured()
    • homeBlockMapSymbol

      public static String homeBlockMapSymbol()
    • outpostMapSymbol

      public static String outpostMapSymbol()
    • forSaleMapSymbol

      public static String forSaleMapSymbol()
    • wildernessMapSymbol

      public static String 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)
    • getTownUnkickableRanks

      public static List<String> getTownUnkickableRanks()
    • doTrustedPlayersGetPermsOnPersonallyOwnedLand

      public static boolean doTrustedPlayersGetPermsOnPersonallyOwnedLand()
    • areProtectedEntitiesProtectedAgainstMobs

      public static boolean areProtectedEntitiesProtectedAgainstMobs()
    • getBossBarNotificationColor

      public static String getBossBarNotificationColor()
    • getBossBarNotificationOverlay

      public static String 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

      public static String getDefaultResidentAbout()
    • getResidentMinTimeToJoinTown

      public static long getResidentMinTimeToJoinTown()
    • maxBuyTownPrice

      public static double maxBuyTownPrice()