TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
510 stars 350 forks source link

Closed economy leak on renaming towns / nations #2795

Closed KingBohica closed 6 years ago

KingBohica commented 6 years ago

Hello and thank your for including an option for having a closed economy. While testing its functionality on our PTR, we discovered that renaming towns and nations deleted money from the towny_server account. My understanding is that when renaming a town, the town's balance is recorded. A new town account is created with the new name and given the previously recorded amount. That amount is deducted from towny_server. However, when deleting the balance from the town's original account, that balance is not credited back to towny_server, making it not a zero sum as would be expected.

What steps will reproduce the problem?

  1. Create Town A, with closed economy enabled. Note balance in towny_server.
  2. Deposit $100 into Town A's account.
  3. Rename Town A to Town B.
  4. Town B will have the correct balance, but towny_server will have $100 less that it previously had.

What is the expected output?

  1. towny_server account should be unaffected.

What is your Towny version?

0.92.0.0

What is your spigot/craftbukkit version?

Spigot 1.12.2 (01/16/2018)

Please use Pastebin.com to link the following files:

Skipping these files is not an option. It is the easiest way to diagnose an issue ticket properly. If you do skip this step then your ticket will most likely be deleted and you will be asked to resubmit.

  1. Your full server startup from the logs\latest.log : [03:44:34] [Server thread/INFO]: Starting minecraft server version 1.12.2 [03:44:34] [Server thread/INFO]: Loading properties [03:44:34] [Server thread/INFO]: Default game type: SURVIVAL [03:44:34] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-9b8bba4-bd30843 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT) [03:44:34] [Server thread/INFO]: Debug logging is disabled [03:44:34] [Server thread/INFO]: Server Ping Player Sample Count: 12 [03:44:34] [Server thread/INFO]: Using 4 threads for Netty based IO [03:44:34] [Server thread/INFO]: Generating keypair [03:44:34] [Server thread/INFO]: Starting Minecraft server on 184.154.200.31:25585 [03:44:34] [Server thread/INFO]: Using epoll channel type [03:44:34] [Server thread/INFO]: Set PluginClassLoader as parallel capable [03:44:34] [Server thread/INFO]: [LuckPerms] Loading LuckPerms v4.0.80 [03:44:34] [Server thread/INFO]: [LP] Identified the following dependencies: [CAFFEINE] [03:44:34] [Server thread/INFO]: [Questioner] Loading Questioner v0.6 [03:44:34] [Server thread/INFO]: [Vault] Loading Vault v1.6.1 [03:44:34] [Server thread/INFO]: [Essentials] Loading Essentials v2.0.1-b577 [03:44:34] [Server thread/INFO]: [ProtocolLib] Loading ProtocolLib v4.3.0 [03:44:34] [Server thread/WARN]: [ProtocolLib] Version (MC: 1.12.2) has not yet been tested! Proceed with caution. [03:44:34] [Server thread/INFO]: [Towny] Loading Towny v0.92.0.0 [03:44:34] [Server thread/INFO]: [TownyChat] Loading TownyChat v0.49 [03:44:34] [Server thread/INFO]: [Orebfuscator4] Loading Orebfuscator4 v4.3.3 [03:44:34] [Server thread/INFO]: [QuickShop] Loading QuickShop v0.9.35 [03:44:34] [Server thread/INFO]: [TownyNameUpdater] Loading TownyNameUpdater v1.0 [03:44:34] [Server thread/INFO]: [LuckPerms] Enabling LuckPerms v4.0.80 [03:44:34] [Server thread/INFO]: _
    [03:44:34] [Server thread/INFO]: | | | / |__/ |__) |__ |__) |\/| /__ [03:44:34] [Server thread/INFO]: |_
    _/ _, | \ | |_ | \ | | ./ [03:44:34] [Server thread/INFO]:
    [03:44:34] [Server thread/INFO]: Loading version v4.0.80 on Bukkit - CraftBukkit [03:44:34] [Server thread/INFO]: Running on server version git-Spigot-9b8bba4-bd30843 (MC: 1.12.2) - 1.12.2-R0.1-SNAPSHOT [03:44:34] [Server thread/INFO]:
    [03:44:34] [Server thread/INFO]: [LP] Loading configuration... [03:44:34] [Server thread/INFO]: [LP] Identified the following dependencies: [CONFIGURATE_CORE, CONFIGURATE_YAML] [03:44:34] [Server thread/INFO]: [LP] Loading storage provider... [YAML] [03:44:35] [Server thread/INFO]: [LP] Loading internal permission managers... [03:44:35] [Server thread/INFO]: [LP] Performing initial data load... [03:44:35] [Server thread/INFO]: [LP] Successfully enabled. (took 374ms) [03:44:35] [Server thread/INFO]: [Vault] Enabling Vault v1.6.1 [03:44:35] [Server thread/INFO]: [Vault] [Economy] Essentials Economy found: Waiting [03:44:35] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system. [03:44:35] [Server thread/INFO]: [Vault] Plugin enabled (27ms) [03:44:35] [Server thread/INFO]: [LP] Registered Vault permission & chat hook. [03:44:35] [Server thread/INFO]: [ProtocolLib] Enabling ProtocolLib v4.3.0 [03:44:35] [Server thread/INFO]: [ProtocolLib] Started structure compiler thread. [03:44:35] [Server thread/INFO]: [Orebfuscator4] Enabling Orebfuscator4 v4.3.3 [03:44:35] [Server thread/INFO]: [OFC] World type 'Default' has been read. [03:44:35] [Server thread/INFO]: [OFC] World type 'Normal' has been read. [03:44:35] [Server thread/INFO]: [OFC] World type 'TheEnd' has been read. [03:44:35] [Server thread/INFO]: [OFC] World type 'Nether' has been read. [03:44:35] [Server thread/INFO]: [OFC] World name 'world' has been read. [03:44:35] [Server thread/INFO]: [OFC] Proximity Hider is Enabled [03:44:35] [Server thread/INFO]: Beginning UUID conversion, this may take A LONG time [03:44:35] [Server thread/INFO]: Preparing level "world" [03:44:35] [Server thread/INFO]: -------- World Settings For [world] -------- [03:44:35] [Server thread/INFO]: Mob Spawn Range: 4 [03:44:35] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cane Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Melon Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:44:35] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Vine Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 [03:44:35] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:44:35] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:44:35] [Server thread/INFO]: Random Lighting Updates: false [03:44:35] [Server thread/INFO]: Structure Info Saving: true [03:44:35] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911 [03:44:35] [Server thread/INFO]: Max TNT Explosions: 100 [03:44:35] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:44:35] [Server thread/INFO]: Item Despawn Rate: 6000 [03:44:35] [Server thread/INFO]: Item Merge Radius: 2.5 [03:44:35] [Server thread/INFO]: Arrow Despawn Rate: 1200 [03:44:35] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:44:35] [Server thread/INFO]: View Distance: 10 [03:44:35] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:44:35] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:44:35] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:44:35] [Server thread/INFO]: -------- World Settings For [world_nether] -------- [03:44:35] [Server thread/INFO]: Mob Spawn Range: 4 [03:44:35] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cane Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Melon Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:44:35] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Vine Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 [03:44:35] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:44:35] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:44:35] [Server thread/INFO]: Random Lighting Updates: false [03:44:35] [Server thread/INFO]: Structure Info Saving: true [03:44:35] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911 [03:44:35] [Server thread/INFO]: Max TNT Explosions: 100 [03:44:35] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:44:35] [Server thread/INFO]: Item Despawn Rate: 6000 [03:44:35] [Server thread/INFO]: Item Merge Radius: 2.5 [03:44:35] [Server thread/INFO]: Arrow Despawn Rate: 1200 [03:44:35] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:44:35] [Server thread/INFO]: View Distance: 10 [03:44:35] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:44:35] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:44:35] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:44:35] [Server thread/INFO]: -------- World Settings For [world_the_end] -------- [03:44:35] [Server thread/INFO]: Mob Spawn Range: 4 [03:44:35] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cane Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Melon Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:44:35] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Vine Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:44:35] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 [03:44:35] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:44:35] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:44:35] [Server thread/INFO]: Random Lighting Updates: false [03:44:35] [Server thread/INFO]: Structure Info Saving: true [03:44:35] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911 [03:44:35] [Server thread/INFO]: Max TNT Explosions: 100 [03:44:35] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:44:35] [Server thread/INFO]: Item Despawn Rate: 6000 [03:44:35] [Server thread/INFO]: Item Merge Radius: 2.5 [03:44:35] [Server thread/INFO]: Arrow Despawn Rate: 1200 [03:44:35] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:44:35] [Server thread/INFO]: View Distance: 10 [03:44:35] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:44:35] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:44:35] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:44:35] [Server thread/INFO]: Preparing start region for level 0 (Seed: 2567791985236958993) [03:44:36] [Server thread/INFO]: Preparing spawn area: 68% [03:44:37] [Server thread/INFO]: Preparing start region for level 1 (Seed: 2567791985236958993) [03:44:37] [Server thread/INFO]: Preparing start region for level 2 (Seed: 2567791985236958993) [03:44:37] [Server thread/INFO]: [Questioner] Enabling Questioner v0.6 [03:44:37] [Server thread/INFO]: [Questioner] v0.6 - Enabled [03:44:37] [Server thread/INFO]: [Essentials] Enabling Essentials v2.0.1-b577 [03:44:37] [Server thread/INFO]: Attempting to convert old kits in config.yml to new kits.yml [03:44:37] [Server thread/INFO]: No kits found to migrate. [03:44:37] [Server thread/INFO]: [Essentials] Using 1.8.3+ BlockStateMeta provider as mob spawner provider. [03:44:38] [Server thread/INFO]: [Essentials] Using Reflection based provider as spawn egg provider. [03:44:38] [Server thread/INFO]: [Essentials] Using 1.9+ BasePotionData provider as potion meta provider. [03:44:38] [Server thread/INFO]: Using locale en_US [03:44:38] [Server thread/INFO]: [Essentials] Using Spigot 1.7.10+ ServerListPingEvent iterator [03:44:38] [Server thread/INFO]: [Essentials] Starting Metrics. Opt-out using the global bStats config. [03:44:38] [Server thread/INFO]: [Vault][Economy] Essentials Economy hooked. [03:44:38] [Server thread/INFO]: [Essentials] Using Vault based permissions (LuckPerms) [03:44:38] [Server thread/INFO]: [Towny] Enabling Towny v0.92.0.0 [03:44:38] [Server thread/INFO]: ==================== Towny ======================== [03:44:38] [Server thread/INFO]: [Towny] Database: [Load] flatfile [Save] flatfile [03:44:38] [Server thread/INFO]: [Towny] Deleted 4 old files. [03:44:38] [Server thread/INFO]: [Towny] Using: Vault v1.6.1, Essentials Economy via Vault, Questioner v0.6 [03:44:38] [Server thread/INFO]: [Towny] Time until a New Day: 8 hours, 15 minutes, 22 seconds [03:44:38] [Server thread/INFO]: [Towny] Version: 0.92.0.0 - Mod Enabled [03:44:38] [Server thread/INFO]: [TownyChat] Enabling TownyChat v0.49 [03:44:38] [Server thread/INFO]: [QuickShop] Enabling QuickShop v0.9.35 [03:44:38] [Server thread/INFO]: [QuickShop] Found permission provider. [03:44:38] [Server thread/INFO]: [QuickShop] Starting item scheduler [03:44:38] [Server thread/INFO]: [QuickShop] Limit cfg found... [03:44:38] [Server thread/INFO]: [QuickShop] Limits.use: false [03:44:38] [Server thread/INFO]: [QuickShop] {quickshop=0, quickshop.vip=20} [03:44:38] [Server thread/INFO]: [QuickShop] Loading shops from database... [03:44:38] [Server thread/INFO]: [QuickShop] Loaded 1 shops. [03:44:38] [Server thread/INFO]: Cleaning purchase messages from database that are over a week old... [03:44:38] [Server thread/INFO]: [QuickShop] Registering Listeners [03:44:38] [Server thread/INFO]: [QuickShop] QuickShop loaded! [03:44:38] [Server thread/INFO]: [TownyNameUpdater] Enabling TownyNameUpdater v1.0 [03:44:38] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [03:44:38] [Server thread/INFO]: [TownyChat] - TownyChat enabled - [03:44:39] [Craft Scheduler Thread - 3/INFO]: [Vault] You are running the latest version

  2. Your Towny config.yml (if using MySQL please remove password,) :

version:

This is the current version of Towny. Please do not edit.

version: 0.92.0.0

This is for showing the changelog on updates. Please do not edit.

last_run_version: 0.92.0.0

Minimum required version of CraftBukkit. Please do not edit.

bukkit_version: '2918'

The language file you wish to use

language: english.yml

############################################################

+------------------------------------------------------+

| Permission nodes |

+------------------------------------------------------+

############################################################

Possible permission nodes

#

towny.admin: User is able to use /townyadmin, as well as the ability to build/destroy anywhere. User is also able to make towns or nations when set to admin only.

towny.cheat.bypass : User is able to use any fly mods and double block jump (disables towny cheat protection for this user).

towny.top : User can access the command towny top

towny.town.* : User has access to all town permission nodes.

towny.town.new :User is able to create a town

towny.town.delete :User is able to delete their town

towny.town.claim : User is able to expand his town with /town claim

towny.town.plot : User is able to use the /plot commands

towny.town.resident : User is able to join towns upon invite.

towny.town.toggle.*: User can access all town toggle commands (if a mayor or assistant).

towny.town.toggle.pvp

towny.town.toggle.public

towny.town.toggle.explosions

towny.town.toggle.fire

towny.town.toggle.mobs

towny.nation.* : User has access to all town permission nodes.

towny.nation.new :User is able to create a nation

towny.nation.delete :User is able to delete their nation (if king)

towny.nation.rename :User is able to rename their nation (if king/assistant)

towny.nation.grant-titles :User is able to grant titles/surnames to the nation residents (if King)

towny.wild.*: User is able to build/destroy in wild regardless.

towny.wild.build

towny.wild.destroy

towny.wild.switch

towny.wild.item_use

towny.wild.block.[block id].* : User is able to edit [block id] in the wild.

towny.wild.build.[block id]

towny.wild.destroy.[block id]

towny.wild.switch.[block id]

towny.wild.item_use.[block id]

#

towny.claimed.* : User can build/destroy/switch/item_use in all towns.

towny.claimed.build : User can build in all towns.

towny.claimed.destroy : User can destroy in all towns.

towny.claimed.switch : User can switch in all towns.

towny.claimed.item_use : User can use use items in all towns.

towny.claimed.alltown.* : User is able to edit specified/all block types in all towns.

towny.claimed.alltown.build.[block id]

towny.claimed.alltown.destroy.[block id]

towny.claimed.alltown.switch.[block id] : User can switch specified/all block types in all towns.

towny.claimed.alltown.item_use.[block id]

towny.claimed.owntown.* : User is able to edit specified/all block types in their own town (ALL plots, including resident owned).

towny.claimed.owntown.build.[block id]

towny.claimed.owntown.destroy.[block id] : (handy to allow clearing of snow '78')

towny.claimed.owntown.switch.[block id]

towny.claimed.owntown.item_use.[block id]

towny.claimed.townowned.* : User is able to edit specified/all block types in their towns owned plots (Town only, not resident owned).

towny.claimed.townowned.build.[block id]

towny.claimed.townowned.destroy.[block id] : (handy to allow clearing of snow '78' on town owned roads/plots)

towny.claimed.townowned.switch.[block id]

towny.claimed.townowned.item_use.[block id]

#

towny.town.spawn.*: Grants all Spawn travel nodes

towny.town.spawn.town : Ability to spawn to your own town.

towny.town.spawn.nation : Ability to spawn to other towns in your nation.

towny.town.spawn.ally : Ability to spawn to towns in nations allied with yours.

towny.town.spawn.public : Ability to spawn to unaffilated public towns.

#

these will be moved to permissions nodes at a later date

permissions: ''

############################################################

+------------------------------------------------------+

| Town and Nation levels |

+------------------------------------------------------+

############################################################

levels:

default Town levels.

town_level:

town:

Default public status of the town (used for /town spawn)

default_public: 'false'

Default Open status of the town (are new towns open and joinable by anyone at creation?)

default_open: 'false'

Default tax settings for new towns.

default_taxes:

Default amount of tax of a new town. This must be lower than the economy.daily_taxes.max_tax_percent setting.

tax: '0.0'
# Default amount of shop tax of a new town.
shop_tax: '0.0'
# Default amount of embassy tax of a new town.
embassy_tax: '0.0'
# Default amount for town's plottax costs.
plot_tax: '0.0'
# Default status of new town's taxpercentage. True means that the default_tax is treated as a percentage instead of a fixed amount.
taxpercentage: 'false'
# A required minimum tax amount for the default_tax, will not change any towns which already have a tax set.
# Do not forget to set the default_tax to more than 0 or new towns will still begin with a tax of zero.
minimumtax: '0.0'

Limits the maximum amount of bonus blocks a town can buy.

max_purchased_blocks: '100'

maximum number of plots any single resident can own

max_plots_per_resident: '100'

maximum number used in /town claim/unclaim # commands.

set to 0 to disable limiting of claim radius value check.

keep in mind that the default value of 4 is a radius,

and it will allow claiming 9x9 (80 plots) at once.

max_claim_radius_value: '4'

Maximum number of towns allowed on the server.

town_limit: '3000'

Minimum number of plots any towns plot must be from the next town's own plots.

This will prevent town encasement to a certain degree.

min_plot_distance_from_town_plot: '5'

Minimum number of plots any towns home plot must be from the next town.

This will prevent someone founding a town right on your doorstep

min_distance_from_town_homeblock: '5'

Maximum distance between homblocks.

This will force players to build close together.

max_distance_between_homeblocks: '0'

The maximum townblocks available to a town is (numResidents * ratio).

Setting this value to 0 will instead use the level based jump values determined in the town level config.

town_block_ratio: '8'

The size of the square grid cell. Changing this value is suggested only when you first install Towny.

Doing so after entering data will shift things unwantedly. Using smaller value will allow higher precision,

at the cost of more work setting up. Also, extremely small values will render the caching done useless.

Each cell is (town_block_size town_block_size 128) in size, with 128 being from bedrock to clouds.

town_block_size: '16'

############################################################

+------------------------------------------------------+

| Default new world settings |

+------------------------------------------------------+

############################################################

These flags are only used at the initial setup of a new world.

Once Towny is running each world can be altered from within game

using '/townyworld toggle'

new_world_settings:

Default for new worlds to have towny enabled.

using_towny: 'true'

pvp:

Set if PVP is enabled in this world

world_pvp: 'true'
# force_pvp_on is a global flag and overrides any towns flag setting
force_pvp_on: 'false'

mobs:

world_monsters_on is a global flag setting per world.

world_monsters_on: 'true'
# force_town_monsters_on is a global flag and overrides any towns flag setting
force_town_monsters_on: 'true'

explosions:

Allow explosions in this world

world_explosions_enabled: 'true'
# force_explosions_on is a global flag and overrides any towns flag setting
force_explosions_on: 'false'

fire:

Allow fire to be lit and spread in this world.

world_firespread_enabled: 'true'
# force_fire_on is a global flag and overrides any towns flag setting
force_fire_on: 'false'

Prevent Endermen from picking up and placing blocks.

enderman_protect: 'true'

Disable players trampling crops

disable_player_crop_trampling: 'true'

Disable creatures trampling crops

disable_creature_crop_trampling: 'true'

World management settings to deal with un/claiming plots

plot_management:

block_delete:
  enabled: 'true'
  # These items will be deleted upon a plot being unclaimed
  unclaim_delete: BED_BLOCK,TORCH,REDSTONE_WIRE,SIGN_POST,WOODEN_DOOR,WALL_SIGN,STONE_PLATE,IRON_DOOR_BLOCK,WOOD_PLATE,REDSTONE_TORCH_OFF,REDSTONE_TORCH_ON,DIODE_BLOCK_OFF,DIODE_BLOCK_ON

mayor_plotblock_delete:
  enabled: 'true'
  # These items will be deleted upon a mayor using /plot clear
  # To disable deleting replace the current entries with NONE.
  mayor_plot_delete: WALL_SIGN,SIGN_POST

revert_on_unclaim:
  # *** WARNING***
  # If this is enabled any town plots which become unclaimed will
  # slowly be reverted to a snapshot taken before the plot was claimed.
  #
  # Regeneration will only work if the plot was
  # claimed under version 0.76.2, or
  # later with this feature enabled
  # Unlike the rest of this config section, the speed setting is not
  # set per-world. What you set for speed will be used in all worlds.
  #
  # If you allow players to break/build in the wild the snapshot will
  # include any changes made before the plot was claimed.
  enabled: 'false'
  speed: 1s
  # These block types will NOT be regenerated
  block_ignore: GOLD_ORE,LAPIS_ORE,LAPIS_BLOCK,GOLD_BLOCK,IRON_BLOCK,MOSSY_COBBLESTONE,TORCH,MOB_SPAWNER,DIAMOND_ORE,DIAMOND_BLOCK,SIGN_POST,WALL_SIGN,GLOWSTONE

wild_revert_on_mob_explosion:
  # Enabling this will slowly regenerate holes created in the
  # wilderness by monsters exploding.
  enabled: 'false'
  entities: Creeper,EnderCrystal,EnderDragon,Fireball,SmallFireball,LargeFireball,TNTPrimed,ExplosiveMinecart
  delay: 20s

############################################################

+------------------------------------------------------+

| Global town settings |

+------------------------------------------------------+

############################################################

global_town_settings:

can residents/Allies harm other residents when in an area with pvp enabled? Other than an Arena plot.

friendly_fire: 'true'

Players within their town or allied towns will regenerate half a heart after every health_regen_speed seconds.

health_regen: speed: 3s enable: 'true'

Allow towns to claim outposts (a townblock not connected to town).

allow_outposts: 'false'

Allow the use of /town spawn

allow_town_spawn: 'false'

Allow regular residents to use /town spawn [town] (TP to other towns if they are public).

allow_town_spawn_travel: 'false'

Allow regular residents to use /town spawn [town] to other towns in your nation.

allow_town_spawn_travel_nation: 'false'

Allow regular residents to use /town spawn [town] to other towns in a nation allied with your nation.

allow_town_spawn_travel_ally: 'false'

If non zero it delays any spawn request by x seconds.

teleport_warmup_time: '0'

Respawn the player at his town spawn point when he/she dies

town_respawn: 'true'

Town respawn only happens when the player dies in the same world as the town's spawn point.

town_respawn_same_world_only: 'false'

Prevent players from using /town spawn while within unclaimed areas and/or enemy/neutral towns.

Allowed options: unclaimed,enemy,neutral

prevent_town_spawn_in: enemy

Enables the [~Home] message.

If false it will make it harder for enemies to find the home block during a war

show_town_notifications: 'true'

The required number of residents in a town to join a nation

If the number is 0, towns will not require a certain amount of residents to join a nation

required_number_residents_join_nation: '0'

The required number of residents in a town to create a nation

If the number is 0, towns will not require a certain amount of residents to create a nation

required_number_residents_create_nation: '0'

If set to true, if a nation is disbanded due to a lack of residents, the capital will be refunded the cost of nation creation.

refund_disband_low_residents: 'false'

The maximum number of townblocks a town can be away from a nation capital,

Automatically precludes towns from one world joining a nation in another world.

If the number is 0, towns will not a proximity to a nation.

nation_requires_proximity: '0.0'

List of blocks which can be modified on farm plots, as long as player is also allowed in the plot's '/plot perm' line.

farm_plot_allow_blocks: LONG_GRASS,DOUBLE_PLANT,YELLOW_FLOWER,RED_ROSE,PUMPKIN_STEM,MELON_STEM,BEETROOT_BLOCK,CARROT,POTATO,CROPS,MELON_BLOCK,PUMPKIN,BEETROOT_BLOCK,CHORUS_PLANT,CHORUS_FLOWER

List of animals which can be kiled on farm plots by town residents.

farm_animals: PIG,COW,CHICKEN,SHEEP,MOOSHROOM

The maximum number of residents that can be joined to a town. Setting to 0 disables this feature.

max_residents_per_town: '0'

If Towny should show players the townboard when they login

display_board_onlogin: 'true'

If set to true, Towny will prevent a town from toggling PVP while an outsider is within the town's boundaries.

When active this feature can cause a bit of lag when the /t toggle pvp command is used, depending on how many players are online.

outsiders_prevent_pvp_toggle: 'true'

The amount of residents a town needs to claim an outpost,

Setting this value to 0, means a town can claim outposts no matter how many residents

minimum_amount_of_residents_in_town_for_outpost: '0'

############################################################

+------------------------------------------------------+

| Plugin interfacing |

+------------------------------------------------------+

############################################################

plugin:

Valid load and save types are: flatfile, mysql, sqlite, h2.

database: database_load: flatfile database_save: flatfile

# SQL database connection details (IF set to use SQL).
sql:
  hostname: localhost
  port: '3306'
  dbname: towny
  table_prefix: towny_
  username: root
  password: ''
  ssl: 'false'

# Flatfile backup settings.
daily_backups: 'true'
backups_are_deleted_after: 90d

# Valid entries are: zip, none.
flatfile_backup: zip

interfacing:

tekkit:
  # Add any fake players for client/server mods (aka Tekkit) here
  fake_residents: '[IndustrialCraft],[BuildCraft],[Redpower],[Forestry],[Turtle]'

# Enable using_essentials if you are using cooldowns in essentials for teleports.
using_essentials: 'false'

# This will attempt to use Register (if present)
# Then it will attempt to access iConomy 5.01 directly
# Enable if you have either iConomy 5.01, or Register.jar to
# support: iConomy5, iConomy6, EssentialsEco, BOSEconomy.
# https://github.com/iConomy/Register/tree/master/dist
using_economy: 'true'

# Enable using_questioner if you are using questioner to send/receive invites to towns/nations.
# See http://code.google.com/a/eclipselabs.org/p/towny/wiki/Questioner for more info.
using_questioner:
  enable: 'true'
  # The command to accept invitations.
  accept: accept
  # The command to refuse invitations.
  deny: deny
  # When set for more than 0m, the amount of time (in minutes) which must have passed between
  # a player's first log in and when they can be invited to a town.
  cooldowntime: 0m

# True to attempt to use GroupManager, PEX, bPermissions, Permissions2/3 or BukkitPerms
# False to disable permission checks and rely on Towny settings.
using_permissions: 'true'

day_timer:

The number of hours in each "day".

# You can configure for 10 hour days. Default is 24 hours.
day_interval: 1d
# The time each "day", when taxes will be collected.
# MUST be less than day_interval. Default is 12h (midday).
new_day_time: 12h

Lots of messages to tell you what's going on in the server with time taken for events.

debug_mode: 'false'

Info tool for server admins to use to query in game blocks and entities.

info_tool: CLAY_BRICK

Spams the player named in dev_name with all messages related to towny.

dev_mode: enable: 'false' dev_name: ElgarL

Record all messages to the towny.log

logging: 'true'

If true this will cause the log to be wiped at every startup.

reset_log_on_boot: 'false'

############################################################

+------------------------------------------------------+

| Filters colour and chat |

+------------------------------------------------------+

############################################################

filters_colour_chat:

This is the name given to any NPC assigned mayor.

npc_prefix: NPC

Regex fields used in validating inputs.

regex: name_filter_regex: '[ /]' name_checkregex: ^[a-zA-Z0-9.[]-]$ string_checkregex: ^[a-zA-Z0-9\s.[]-]$ name_removeregex: '[^a-zA-Z0-9.[]-]'

modify_chat:

Maximum length of Town and Nation names.

max_name_length: '20'
# Maximum length of titles and surnames.
max_title_length: '10'

############################################################

+------------------------------------------------------+

| block/item/mob protection |

+------------------------------------------------------+

############################################################

protection:

Items that can be blocked within towns via town/plot flags

259 - flint and steel

325 - bucket

326 - water bucket

327 - lava bucket

351 - bone/bonemeal

359 - shears

368 - ender pearl

374 - glass bottle

385 - fire charge

item_use_ids: FLINT_AND_STEEL,BUCKET,WATER_BUCKET,LAVA_BUCKET,MINECART,STORAGE_MINECART,INK_SACK,SHEARS,ENDER_PEARL,GLASS_BOTTLE,FIREBALL,ARMOR_STAND,SKULL_ITEM

Items which can be blocked or enabled via town/plot flags

25 - noteblock

54 - chest ...etc

switch_ids: DISPENSER,NOTE_BLOCK,CHEST,FURNACE,BURNING_FURNACE,WOODEN_DOOR,ACACIA_DOOR,DARK_OAK_DOOR,JUNGLE_DOOR,BIRCH_DOOR,SPRUCE_DOOR,LEVER,STONE_PLATE,IRON_DOOR_BLOCK,WOOD_PLATE,STONE_BUTTON,TRAP_DOOR,JUKEBOX,DIODE_BLOCK_OFF,DIODE_BLOCK_ON,FENCE_GATE,SPRUCE_FENCE_GATE,BIRCH_FENCE_GATE,JUNGLE_FENCE_GATE,DARK_OAK_FENCE_GATE,ACACIA_FENCE_GATE,TRAPPED_CHEST,GOLD_PLATE,IRON_PLATE,REDSTONE_COMPARATOR_OFF,REDSTONE_COMPARATOR_ON,BEACON,HOPPER,DROPPER,MINECART,STORAGE_MINECART,POWERED_MINECART,CARROT_STICK,EXPLOSIVE_MINECART,HOPPER_MINECART,WHITE_SHULKER_BOX,ORANGE_SHULKER_BOX,MAGENTA_SHULKER_BOX,LIGHT_BLUE_SHULKER_BOX,YELLOW_SHULKER_BOX,LIME_SHULKER_BOX,PINK_SHULKER_BOX,GRAY_SHULKER_BOX,SILVER_SHULKER_BOX,CYAN_SHULKER_BOX,PURPLE_SHULKER_BOX,BLUE_SHULKER_BOX,BROWN_SHULKER_BOX,GREEN_SHULKER_BOX,RED_SHULKER_BOX,BLACK_SHULKER_BOX

permitted entities https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/LivingEntity.htmll

Animals, Chicken, Cow, Creature, Creeper, Flying, Ghast, Giant, Monster, Pig,

PigZombie, Sheep, Skeleton, Slime, Spider, Squid, WaterMob, Wolf, Zombie, Shulker

Husk, Stray, SkeletonHorse, ZombieHorse, Vex, Vindicator, Evoker, Endermite, PolarBear

Remove living entities within a town's boundaries, if the town has the mob removal flag set.

town_mob_removal_entities: Monster,WaterMob,Flying,Slime,Shulker,SkeletonHorse,ZombieHorse

Prevent the spawning of villager babies in towns.

town_prevent_villager_breeding: 'false'

Disable creatures triggering stone pressure plates

disable_creature_pressureplate_stone: 'false'

Globally remove living entities in all worlds that have their flag set.

world_mob_removal_entities: Monster,WaterMob,Flying,Slime

Prevent the spawning of villager babies in the world.

world_prevent_villager_breeding: 'false'

The maximum amount of time a mob could be inside a town's boundaries before being sent to the void.

Lower values will check all entities more often at the risk of heavier burden and resource use.

NEVER set below 1.

mob_removal_speed: 5s

permitted entities http://jd.bukkit.org/apidocs/org/bukkit/entity/package-summary.html

Animals, Chicken, Cow, Creature, Creeper, Flying, Ghast, Giant, Monster, Pig,

PigZombie, Sheep, Skeleton, Slime, Spider, Squid, WaterMob, Wolf, Zombie

Protect living entities within a town's boundaries from being killed by players.

mob_types: Animals,NPC,Snowman,ArmorStand

permitted Potion Types http://jd.bukkit.org/apidocs/org/bukkit/potion/PotionType.html

ABSORPTION, BLINDNESS, CONFUSION, DAMAGE_RESISTANCE, FAST_DIGGING, FIRE_RESISTANCE, HARM, HEAL, HEALTH_BOOST, HUNGER,

INCREASE_DAMAGE, INVISIBILITY, JUMP, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW , SLOW_DIGGING,

SPEED, WATER_BREATHING, WEAKNESS, WITHER.

When preventing PVP prevent the use of these potions.

potion_types: BLINDNESS,CONFUSION,HARM,HUNGER,POISON,SLOW,SLOW_DIGGING,WEAKNESS,WITHER

Prevent fly and double block jump cheats.

cheat_protection: 'true'

The amount of time it takes for a protected block to regenerate. Use zero for no delay.

regen_delay: 0s

############################################################

+------------------------------------------------------+

| Wilderness settings |

+------------------------------------------------------+

############################################################

These Settings defaults only. They are copied to each worlds data files upon first detection

To make changes for each world edit the settings in the relevant worlds data file 'plugins/Towny/data/worlds/'

unclaimed: unclaimed_zone_build: 'false' unclaimed_zone_destroy: 'false' unclaimed_zone_item_use: 'false' unclaimed_zone_ignore: SAPLING,GOLD_ORE,IRON_ORE,COAL_ORE,LOG,LEAVES,LAPIS_ORE,LONG_GRASS,YELLOW_FLOWER,RED_ROSE,BROWN_MUSHROOM,RED_MUSHROOM,TORCH,DIAMOND_ORE,LADDER,RAILS,REDSTONE_ORE,GLOWING_REDSTONE_ORE,CACTUS,CLAY,SUGAR_CANE_BLOCK,PUMPKIN,GLOWSTONE unclaimed_zone_switch: 'false'

############################################################

+------------------------------------------------------+

| Town Notifications |

+------------------------------------------------------+

############################################################

This is the format for the notifications sent as players move between plots.

Empty a particular format for it to be ignored.

Example:

[notification.format]

~ [notification.area[wilderness/town]][notification.splitter][notification.[no]owner][notification.splitter][notification.plot.format]

... [notification.plot.format]

... [notification.plot.homeblock][notification.plot.splitter][notification.plot.forsale][notification.plot.splitter][notification.plot.type]

~ Wak Town - Lord Jebus - [Home] [For Sale: 50 Beli] [Shop]

notification: format: '&6 ~ %s' splitter: '&7 - ' area_wilderness: '&2%s' area_wilderness_pvp: '%s' area_town: '&6%s' area_town_pvp: '%s' owner: '&a%s' no_owner: '&a%s' plot: splitter: ' ' format: '%s' homeblock: '&b[Home]' outpostblock: '&b[Outpost]' forsale: '&e[For Sale: %s]' type: '&6[%s]'

If set to true MC's Title and Subtitle feature will be used when crossing into a town.

Could be seen as intrusive/distracting, so false by default.

using_titles: 'false'

############################################################

+------------------------------------------------------+

| Default Town/Plot flags |

+------------------------------------------------------+

############################################################

default_perm_flags:

Default permission flags for residents plots within a town

#

Can allies/friends/outsiders perform certain actions in the town

#

build - place blocks and other items

destroy - break blocks and other items

itemuse - use items such as furnaces (as defined in item_use_ids)

switch - trigger or activate switches (as defined in switch_ids)

resident: friend: build: 'false' destroy: 'false' item_use: 'false' switch: 'false' ally: build: 'false' destroy: 'false' item_use: 'false' switch: 'false' outsider: build: 'false' destroy: 'false' item_use: 'false' switch: 'false'

Default permission flags for towns

These are copied into the town data file at creation

#

Can allies/outsiders/residents perform certain actions in the town

#

build - place blocks and other items

destroy - break blocks and other items

itemuse - use items such as flint and steel or buckets (as defined in item_use_ids)

switch - trigger or activate switches (as defined in switch_ids)

town: default: pvp: 'false' fire: 'false' explosion: 'false' mobs: 'false' resident: build: 'false' destroy: 'false' item_use: 'false' switch: 'false' ally: build: 'false' destroy: 'false' item_use: 'false' switch: 'false' outsider: build: 'false' destroy: 'false' item_use: 'false' switch: 'false'

############################################################

+------------------------------------------------------+

| Resident settings |

+------------------------------------------------------+

############################################################

resident_settings:

player is flagged as inactive after 1 hour (default)

inactive_after_time: 1h

if enabled old residents will be kicked and deleted from a town

after Two months (default) of not logging in

delete_old_residents: enable: 'true' deleted_after_time: 60d delete_economy_account: 'false'

The name of the town a resident will automatically join when he first registers.

default_town_name: ''

If true, players can only use beds in plots they personally own.

deny_bed_use: 'false'

############################################################

+------------------------------------------------------+

| Economy settings |

+------------------------------------------------------+

############################################################

economy:

By default it is set to true.

Rarely set to false. Set to false if you get concurrent modification errors on timers for daily tax collections.

use_async: 'true'

Prefix to apply to all town economy accounts.

town_prefix: town-

Prefix to apply to all nation economy accounts.

nation_prefix: county-

spawn_travel:

Cost to use /town spawn

price_town_spawn_travel: '0.0'
# Cost to use '/town spawn [town]' to another town in your nation.
price_town_nation_spawn_travel: '5.0'
# Cost to use '/town spawn [town]' to another town in a nation that is allied with your nation.
price_town_ally_spawn_travel: '10.0'
# Cost to use /town spawn [town]
# This is paid to the town you goto.
price_town_public_spawn_travel: '10.0'

The daily upkeep to remain neutral during a war. Neutrality will exclude you from a war event, as well as deterring enemies.

price_nation_neutrality: '100.0'

new_expand:

How much it costs to start a nation.

price_new_nation: '1000.0'
# How much it costs to start a town.
price_new_town: '250.0'
# How much it costs to make an outpost. An outpost isn't limited to being on the edge of town.
price_outpost: '500.0'
# The price for a town to expand one townblock.
price_claim_townblock: '25.0'
# How much it costs a player to buy extra blocks.
price_purchased_bonus_townblock: '10.0'
# How much every extra bonus block costs more. Set to 1 to deactivate this. 1.2 means +20% to every bonus claim block cost.
price_purchased_bonus_townblock_increase: '1.0241895602489973130925541274878'

death:

Either fixed or percentage.

# For percentage 1.0 would be 100%. 0.01 would be 1%.
price_death_type: fixed
# If True, only charge death prices for pvp kills. Not monsters/environmental deaths.
price_death_pvp_only: 'false'

price_death: '0.0'

price_death_town: '0.0'

price_death_nation: '0.0'

banks:

Maximum amount of money allowed in town bank

# Use 0 for no limit
town_bank_cap: '0.0'
# Set to true to allow withdrawls from town banks
town_allow_withdrawls: 'true'
# Maximum amount of money allowed in nation bank
# Use 0 for no limit
nation_bank_cap: '0.0'
# Set to true to allow withdrawls from nation banks
nation_allow_withdrawls: 'true'

closed_economy:

The name of the account that all money that normally disappears goes into.

server_account: towny-server
# Turn on/off whether all transactions that normally don't have a second party are to be done with a certain account.
# Eg: The money taken during Daily Taxes is just removed. With this on, the amount taken would be funneled into an account.
#     This also applies when a player collects money, like when the player is refunded money when a delayed teleport fails.
enabled: 'true'

daily_taxes:

Enables taxes to be collected daily by town/nation

# If a town can't pay it's tax then it is kicked from the nation.
# if a resident can't pay his plot tax he loses his plot.
# if a resident can't pay his town tax then he is kicked from the town.
# if a town or nation fails to pay it's upkeep it is deleted.
enabled: 'false'
# Maximum tax amount allowed when using flat taxes
max_tax_amount: '1000.0'
# maximum tax percentage allowed when taxing by percentages
max_tax_percent: '25'
# The server's daily charge on each nation. If a nation fails to pay this upkeep
# all of it's member town are kicked and the Nation is removed.
price_nation_upkeep: '0.0'
# The server's daily charge on each town. If a town fails to pay this upkeep
# all of it's residents are kicked and the town is removed.
price_town_upkeep: '0.0'
# Uses total amount of owned plots to determine upkeep instead of the town level (Number of residents)
# calculated by (number of claimed plots X price_town_upkeep).
town_plotbased_upkeep: 'false'
# If set to true, the plot-based-upkeep system will be modified by the Town Levels' upkeep modifiers.
town_plotbased_upkeep_affected_by_town_level_modifier: 'false'
# If enabled and you set a negative upkeep for the town
# any funds the town gains via upkeep at a new day
# will be shared out between the plot owners.
use_plot_payments: 'false'

############################################################

+------------------------------------------------------+

| Jail Plot settings |

+------------------------------------------------------+

############################################################

jail:

If true attacking players who die on enemy-town land will be placed into the defending town's jail if it exists.

Requires town_respawn to be true in order to work.

is_jailing_attacking_enemies: 'true'

If true attacking players who are considered an outlaw, that are killed inside town land will be placed into the defending town's jail if it exists.

Requires town_respawn to be true in order to work.

is_jailing_attacking_outlaws: 'true'

If true jailed players can use Ender Pearls but are still barred from using other methods of teleporting.

jail_allows_ender_pearls: 'false'

If false jailed players can use /town leave, and escape a jail.

jail_denies_town_leave: 'true'

bail:

If true players can pay a bail amount to be unjailed.

is_allowing_bail: 'true'
#Amount that bail costs.
bail_amount: '100'

############################################################

+------------------------------------------------------+

| War settings |

+------------------------------------------------------+

############################################################

war:

This setting allows you disable the ability for a nation to pay to remain neutral during a war.

nation_can_be_neutral: 'true'

By setting this to true, nations will receive a questioner prompt for alliances and alliances will show on both nations.

disallow_one_way_alliance: 'false'

############################################################

+------------------------------------------------------+

| Economy Transfers During War settings |

+------------------------------------------------------+

############################################################

economy: enemy:

Amount charged to place a warflag (payed to server).

  place_flag: '10'
  # Amount payed from the flagbearer to the defender after defending the area.
  defended_attack: '10'
# Defending town pays attaking flagbearer. If a negative (attacker pays defending town),
# and the attacker can't pay, the attack is canceled.
townblock_won: '10'
# Same as townblock_won but for the special case of winning the homeblock.
homeblock_won: '100'

############################################################

+------------------------------------------------------+

| War Event settings |

+------------------------------------------------------+

############################################################

This is started with /townyadmnin toggle war

In peace time War spoils are accumulated from towns and nations being

deleted with any money left in the bank.

#

These funds are increased during a war event upon a player death.

An additional bonus to the war chest is set in base_spoils.

#

During the event a town losing a townblock pays the wartime_town_block_loss_price to the attacking town.

The war is won when the only nations left in the battle are allies, or only a single nation.

#

The winning nations share half of the war spoils.

The remaining half is paid to the town which took the most town blocks, and lost the least.

event: warning_delay: '30'

If false all towns not in nations can be attacked during a war event.

towns_are_neutral: 'true'
enemy:
  # If true, enemy's can only attack the edge plots of a town in war.
  only_attack_borders: 'true'
plots:
  # If true, nation members and allies can regen health on plots during war.
  healable: 'true'
  # If true, fireworks will be launched at plots being attacked or healed in war every war tick.
  firework_on_attacked: 'true'

# If true and the monarch/king dies the nation is removed from the war.
remove_on_monarch_death: 'false'
# If enabled players will be able to break/place any blocks in enemy plots during a war.
# This setting SHOULD NOT BE USED unless you want the most chaotic war possible.
# The editable_materials list in the Warzone Block Permission section should be used instead.
allow_block_griefing: 'false'

# A townblock takes damage every 5 seconds that an enemy is stood in it.
block_hp:
  town_block_hp: '60'
  home_block_hp: '120'

eco:
  # This amount is new money injected into the economy with a war event.
  base_spoils: '100.0'
  # This amount is taken from the losing town for each plot lost.
  wartime_town_block_loss_price: '100.0'
  # This amount is taken from the player if they die during the event
  price_death_wartime: '200.0'
# If set to true when a town drops an enemy townblock's HP to 0, the attacking town gains a bonus townblock,
# and the losing town gains a negative (-1) bonus townblock.
costs_townblocks: 'true'

points:
  points_townblock: '1'
  points_town: '10'
  points_nation: '100'
  points_kill: '1'

# The minimum height at which a player must stand to count as an attacker.
min_height: '60'

############################################################

+------------------------------------------------------+

| Flag war settings |

| |

| Separate from Event War |

| Unsupported / Buggy |

+------------------------------------------------------+

############################################################

enemy:

If false, players won't be able to place war flags, effectively disabling warzones.

allow_attacks: 'true'
# If true, enemy's can only attack the edge plots of a town with war flags.
only_attack_borders: 'true'
# This many people must be online in target town in order to place a war flag in their domain.
min_players_online_in_town: '1'
# This many people must be online in target nation in order to place a war flag in their domain.
min_players_online_in_nation: '1'
max_active_flags_per_player: '1'
flag:
  waiting_time: 5m
  # This is the block a player must place to trigger the attack event.
  base_block: standing_banner
  # This is the block a player must place to trigger the attack event.
  light_block: torch
beacon:
  # Must be smaller than half the size of town_block_size.
  radius: '3'
  # The range the beacon will be drawn in. It's flexibility is in case the flag is close to the height limit.
  # If a flag is too close to the height limit (lower than the minimum), it will not be drawn.
  height_above_flag:
    min: '3'
    max: '64'
  draw: 'true'
  wireframe_block: glowstone

############################################################

+------------------------------------------------------+

| Warzone Block Permissions |

| |

| Used in Flag & Event Wars |

+------------------------------------------------------+

############################################################

warzone:

List of materaials that can be modified in a warzone.

# '*' = Allow all materials.
# Prepend a '-' in front of a material to remove it. Used in conjunction with when you use '*'.
# Eg: '*,-chest,-furnace'
editable_materials: tnt,fence,ladder,wood_door,iron_door,fire
item_use: 'true'
switch: 'true'
# Add '-fire' to editable materials for complete protection when setting is false. This prevents fire to be created and spread.
fire: 'true'
explosions: 'true'
explosions_break_blocks: 'true'
# Only under affect when explosions_break_blocks is true.
explosions_regen_blocks: 'false'
# A list of blocks that will not be exploded, mostly because they won't regenerate properly.
# These blocks will also protect the block below them, so that blocks like doors do not dupe themselves.
# Only under affect when explosions_break_blocks is true.
explosions_ignore_list: WOODEN_DOOR,ACACIA_DOOR,DARK_OAK_DOOR,JUNGLE_DOOR,BIRCH_DOOR,SPRUCE_DOOR,IRON_DOOR,CHEST,TRAPPED_CHEST,FURNACE,BURNING_FURNACE,DROPPER,DISPENSER,HOPPER,ENDER_CHEST,WHITE_SHULKER_BOX,ORANGE_SHULKER_BOX,MAGENTA_SHULKER_BOX,LIGHT_BLUE_SHULKER_BOX,YELLOW_SHULKER_BOX,LIME_SHULKER_BOX,PINK_SHULKER_BOX,GRAY_SHULKER_BOX,SILVER_SHULKER_BOX,CYAN_SHULKER_BOX,PURPLE_SHULKER_BOX,BLUE_SHULKER_BOX,BROWN_SHULKER_BOX,GREEN_SHULKER_BOX,RED_SHULKER_BOX,BLACK_SHULKER_BOX,NOTE_BLOCK,LEVER,STONE_PLATE,IRON_DOOR_BLOCK,WOOD_PLATE,JUKEBOX,DIODE_BLOCK_OFF,DIODE_BLOCK_ON,FENCE_GATE,GOLD_PLATE,IRON_PLATE,REDSTONE_COMPARATOR_OFF,REDSTONE_COMPARATOR_ON,BEACON
  1. Your townyperms.yml :

    This file contains custom permission sets which will be assigned to your players

    depending on their current status.

    #

    This is all managed by towny and pushed directly to CraftBukkits SuperPerms.

    These will be in addition to any you manually assign in your specific permission plugin.

    #

    You may assign any Permission nodes here, including those from other plugins.

    You may also create any custom ranks you require.

The 'nomad' permission set covers players not in any town

nomad:

This section of permissions covers players who are members of a town.

towns: default:

'default' is the permission set which is auto assigned to any normal town member

    - towny.command.resident.*
    - towny.command.plot.claim
    - towny.command.plot.unclaim
    - towny.command.plot.forsale
    - towny.command.plot.notforsale
    - towny.command.plot.toggle.*
    - towny.command.plot.set.perm
    - towny.command.plot.set.reset
    - towny.command.town.online
    - towny.command.town.leave
    - towny.command.town.deposit
    - towny.town.spawn.town
    - towny.chat.town
mayor:
    # Mayors get these permissions in addition to the default set.
    - towny.tax_exempt
    - towny.command.towny.top
    - towny.command.town.*
    - towny.command.plot.*

- towny.claimed.owntown.*

    - towny.command.nation.new
    - towny.outlaw.jailer

new

    - towny.claimed.townowned
    - -towny.claimed.owntown.switch.*

ranks:
    # Ranks contain additional permissions residents will be
    # granted if they are assigned that specific rank.
    assistant:
        - towny.tax_exempt
        - towny.command.town.claim.*
        - towny.command.town.add
        - towny.command.plot.*
        - towny.command.town.toggle.public
        - towny.claimed.owntown.switch.*
        # assistants are able to grant VIP and helper rank
        - towny.command.town.rank.vip
        - towny.command.town.rank.helper
        - towny.outlaw.jailer
    helper:
        - towny.claimed.townowned.switch.*
    donator:
        # Currently only an example rank holder with no extra permissions
    vip:
        - towny.cheat.bypass
    # Sheriff rank is able to jail other town members.
    sheriff:
        - towny.command.town.toggle.jail
        - towny.outlaw.jailer

This section of permissions covers players who are members of any town in a nation.

nations: default:

All nation members get these permissions.

    - towny.command.nation.online
    - towny.command.nation.deposit
    - towny.town.spawn.nation
    - towny.town.spawn.ally
    - towny.chat.nation
king:
    # Kings get these permissions in addition to the default set.
    - towny.command.nation.*

ranks:
    assistant:
        - towny.command.nation.rank.helper
        - towny.command.nation.add
        - towny.command.nation.ally
        - towny.command.nation enemy
    helper:
        - towny.command.nation.add
  1. Your log's error : Towny's log folder doesn't appear to contain any error files.

(optional) If this is to do with permissions,

  1. Your permissions file :

(optional) If this is to do with chat,

  1. Your chatconfig.yml :
  2. Your channels.yml :
Articdive commented 6 years ago

Wait so let me get this straight: Town A is renamed to Town B. Town A has 100$ and Town B gets 100$ (as its the same town renamed), And the towny_server (global_economy_account) has 100$ less than what it had before it

KingBohica commented 6 years ago

Correct. It appears that under the closed economy system, when changes are made to accounts, whatever the net change is will then by applied in reverse to the global_economy_account. This is true in most cases, like when it makes a new account for Town B. Since Town B goes from $0 to $100, it performs a check and then takes $100 from the global account. However, when Town A is then deleted, it doesn't first do any sort of "remove $100 from Town A and do the reverse to global account". It just deletes the balance.

LlmDl commented 6 years ago

Fixed as of 0.92.0.5