All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Towns & Nations

Towns & Nations

by Leralix • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Towns and Nations header

Do not forgot to download the mandatory dependencies

Towns & Nations is a Minecraft plugin designed to provide players with an immersive role-playing experience. It enables the creation of towns, management of land claims, establishment of alliances, and the orchestration of wars and betrayals.

Main characteristics:

  • Role creation and management
  • Chunk protection
  • Roleplay features (alliance, war, embargo...)
  • Economy system (can be merged/disabeld with vault)
  • Tax, chunk upkeep, salaries and upgrades
  • Complete GUI
  • Highly configurable
  • Dynmap support
  • Squaremap support
  • Bluemap support
  • Pl3xmap support
  • DiscordSrv support
  • PlaceholderAPI support
  • Custom 3D private property (sell or rent property in your town)
  • Wars (conquer chunks, subjugate territories...)
  • Landmarks (Capture and hold to get daily items)

Mandatory dependencies :

Bstat graph

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2
Paper Purpur
17h ago 1
26.1.x 1.21.x
Paper Purpur
17h ago 1
26.1.x 1.21.11
Paper Purpur
17h ago 1
1.21.x 1.20.x
Paper Purpur
17h ago 1
26.2 26.1.x 1.21.11
Paper Purpur
17h ago 1
26.1.x 1.21.11
Paper Purpur
17h ago 1
26.1.x 1.21.11
Paper Purpur
17h ago 1
26.1.x 1.21.11
Paper Purpur
17h ago 1
26.1.x 1.21.11
Paper Purpur
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
17h ago 1
1.20.x 1.19.x
Paper Spigot
17h ago 1
# Towns and Nations 1.0.5
## New :
  • Ownership of a territory and Being a capital is better separated.
  • A player can be the owner of a nation while the nation capital is from another region
  • Add correct syntax : {} message when /tan ClaimArea command fail
  • By default, Nations will have all biomes allowed in order to reduce incomprehension when enabling nation claims
  • If a player joins a town, he will be cleared out the forgein player permission trust
  • 2 Forts can no longer be placed in the same chunk
  • Add option to force placing a first chunk in order to create a town (Before choosing a Name)
  • New command /tan wiki

## Bug fixes

  • Fixed negative price mob ban upgrade
  • Fixed wrong message displaying when trying to unclaim a landmark chunk
  • Fix argument check on /tan unclaim <Town/Region/Nation>, blocking the command.
  • Deleting a fort will now correctly update the chunk associated
  • Fix text errors in the updated diplomacy menu
  • Fix "Town level" title in region and nation menu
  • Fix Nation Hirarchy menu showing option to browse suzerain invitations
  • Fix "Change ownership" menu looping with Nation Settings menu with the "return" icon
  • (Trying to) fix dupe glitch by protecting block beneath fort banner
  • Fix Name Filter not working the slightest
  • Fix capture message when score reach 100% @konradschutle
  • Available chunks to conquer displays the incorrect territory @konradschutle
## New :

  • /tan <Town/Region/Nation> trust <PlayerName>
  • /tan <Town/Region/Nation> untrust <PlayerName>
Trust a foreign player with all chunk permission of the territory. Same as allowing each permission manually in the GUI.
  • Admins can edit upgrades of any territory from the admin gui
  • War menu will have a new icon displaying the number of chunk that can be claimed due to a Conquer war goal
  • A monetary requirement of 0 will no longer be shown (Town creation, war start...)
  • Minimap update :
  • Cleaner GUI
  • Auto update when player cross another chunk .

## Bug fixes
  • Fix "Infinity" chunk cap not taken into account with latest update chunk system @rssel
  • Fix missing placeholder on several text :
  • Chunk already claimed (miss owner name)
  • First claim too close to another territory (miss radius value)

## Others
  • setupCommonLayout() now correctly used in Region & Nation menu + Add land button
## New :

  • /tan <Town/Region/Nation> trust <PlayerName>
  • /tan <Town/Region/Nation> untrust <PlayerName>
Trust a foreign player with all chunk permission of the territory. Same as allowing each permission manually in the GUI.

  • Admins can edit upgrades of any territory from the admin gui
  • War menu will have a new icon displaying the number of chunk that can be claimed due to a Conquer war goal
  • A monetary requirement of 0 will no longer be shown (Town creation, war start...)
  • Minimap update :
  • Cleaner GUI
  • Auto update when player cross another chunk .

## Bug fixes
  • Fix "Infinity" chunk cap not taken into account with latest update chunk system @rssel
  • Fix missing placeholder on several text :
  • Chunk already claimed (miss owner name)
  • First claim too close to another territory (miss radius value)

## Others
  • setupCommonLayout() now correctly used in Region & Nation menu + Add land button
## New :

  • Wars : **
  • War menu will have a new icon displaying the number of chunk that can be claimed in other territory due to Conquer war goal
  • Add "Tribute" option in war goals. The territory will be forced to pay a certain amount of money each day to end the war.
  • Tribute time is configurable (default : 7 days)
  • Max amount is configurable (default : 1 000)
  • Tribute will be paid each day with other territory spendings.
  • If a territory does not have enough money to pay the tribute daily, it will continue until fully paid.
  • Tribute is paid before others spendings. Meaning that chunk upkeep cannot be paid by the territory if it cannot pay the tribute first
  • If war starts again, tribute payment will cease

  • Chunks**

  • Options to handle chunk cap being too high :
  • DELETE_INSTANT
  • DELETE_EACH_DAY
  • INCREASE_UPKEEP
  • NOTHING

  • New API endpoints (0.8.0) :
  • TanChunk#claimChunk : Can claim chunk on behalf of a territory. Will only work if prerequisites are met
  • TanChunk#forceClaim : Can claim chunk on behalf of a territory. If already claimed, it will replace it

## Bug fixes
  • Fix nations not executing midnight tasks (taxes, upkeep, salaries...)
  • Fix Declare war menu not using requirement system for starting a war


## Others
  • Central system to replace " " with "-" in each unique name
  • JsonStorage new send a copy of the original list with .getAll()
## New :

  • Fort names are now unique
  • Option to allow teleportation to forts
  • allowTeleport : true/false
  • allowTeleportInWar : true/false

Remove command : /tan spawn <town/region/nation>
New command : /tan teleport <Territory-name/Fort-name>
New command : /tanserver settown <player> <town-name>

  • Piston grief support added in Chunk general setting.

  • Replace /tan claimarea command with /tan claim fill. Command will try to claim all chunk inside an encircled zone

## Bug fixes
  • Fix "Start attack" Confirm button showing valid icon even though an attack is already planned.
  • Cancelled attacks no longer block new attacks

## Others
# Towns and Nations 1.0.1
## New :

  • Minimap in the scoreboard (/tan minimap)
  • Players with no town can now buy property if "Neutral" relation allows it
  • If a player in a vehicle enters a chunk where using it is forbidden, he will dismount.
  • Seperate /tanadmin sudo permission :
  • tan.admin.commands.sudo -> self
  • tan.admin.commands.sudo.other -> self & others
  • Wiki updated
  • Add information on Fort Outpost mechanic in the build menu
  • New permission for egg use (mobs & chicken)
  • Add romanian translation @trident35ro
  • Add deposit command (/tan deposit <town/region/nation> <amount>)


## Bug fixes

  • Fix missing rank permission in Regions and Nations (Upgrades, Claims, Mobs and administrator)
  • Fix ability to overlap properties
  • Fix locked chunk permission from new updates if the territory was created before.

## Others
  • Now using the new requirement system in the building menu
  • Replaced deprecated enums (Biomes & BannerTypes) by paper's new system
Fixing TerritoryChunkSettingsMenu not opening
# Towns and Nations 1.0.0
## New :

  • Plugin is now 1.21.11+ (previously 1.19+)
  • Added copper chest protection
  • Tooltips have been removed from comsetic item in GUIs
  • Placing a property sign at the bottom of a block will show a hanging sign instead of a floating sign

  • Add option to rename forts
  • Reworked heldByAlly & heldByEnemy : only check when an attack is ongoing rather than the entire war.
  • Option to allow all players to join a town without approval
  • Right clicking on a fort banner will display a descriptive text
  • Display fort protection radius and fort capture time in gui

  • Better /tan map
  • Replacing paper API with spigot
  • UI is more coherent with plugin style
  • Better display of occupied chunk
  • Display fort chunks on map :hut:
  • Display Landmarks on map :sparkle:
  • If a chunk is protected by a fort, it will be displayed in /tan map

  • If the chunk where the territory spawn is located is unclaimed or occupied, it is unusable
  • Valid world check will not be done after the server start.
  • The check for valid worlds will now be done after all plugins are loaded

## Bug fixes
  • Trying a fix on a bug causing errors on certains UUID if the server is in offline mode
  • Fix registering banner playing "NOT_ALLOWED" sound even if the banner have been successfully set
  • Fix ability to bypass minecart and boat permission by using the secondary hand
  • Fix wrong support block being protected when placing a property sign down of a block
  • Fix bossbar not showing to a player that join the server in the middle of an attack
  • Fix missing chunkPermissionConfig "nationPermissions"
  • Fix wrong loading of Internal vault support

## Others
  • Small economy refactoring
  • Lowering visibility of data inside DbManagers
  • More work on Centralizing JsonStorages
## New :

  • Experimental proxy support with Redis.
  • This is the starting ground for a MySQL and SQLite full support
  • Config.yml has been updated
  • If no redis server have been setup, plugin will not start.

  • Remove ability to change relation while at war

  • /town join command now use real town name, allowing player to accept a town invitation even if they miss the button in chat

## Bug fixes
  • Fix admin "player menu" not showing

  • Fix several events not being displayed :
  • Attack ended
  • War declared
  • War ended
  • Fix war not ending even if surrender progress is above 100%
  • Fix ability to spam request to join a town
  • Fix ability to continue claiming enemy chunk 20s after an attack ended


## Others
  • Change war cost "not enough money" message
  • Cleaning data access and storage classes
  • Removed all Singleton Storage class.
  • Add text in config.yml for everything that can be customized in upgrades.yml
Fix "Change Ownership" menu wrong callback
## New :

  • Separated "mob grief" general chunk setting to <Villager/Passive/Hostile> grief
  • Add configurable cost for declaring war @aligator31
  • Minor gui improvements

## Bug fixes

  • Fix private property creation
  • Fix paying resources when a level is maxed out
  • Fix /tanadmin setmoney and /tanadmin addMoney syntax message
  • Fix missing buttons in hierarchy menu
  • Fix INTERACT_BOAT only blocking placing of oak boats.
  • Fix INTERACT_MINECART only blocking placing of minecart

## Others

  • All Planned tasks have been added on github to make contributing easier
## New :

  • Property sign can now be relocated.
  • Config option to remove full protection of property sign enablePropertySignProtection

  • Teleportation
  • Add spawn to Regions and Nations. (/tan setspawn region/nation)
  • Territories can select who can use the town spawn (Self / Nation, Region, Alliance, Non-aggression pact, Neutral)
  • In addition to /tan spawn, players can access all available teleportation from the player menu

  • Intrusion alert are now shown in the hotbar instead of the chat message + sound

  • Option to disable tan's block check if an event has already been cancelled by another plugin (to avoid stacking messages in chat) noCheckIfEventCancelled: true

  • Updated languages

## Bug fixes
  • Fix fort ID not auto incrementing, causing all fort to override the last one.
  • Fix upgrades.yml overriding regions and nations upgrades
  • Fix empty api methods in Landmark.java, causing errors in map plugins

## Others
  • space character in names are now seen like - . This will allow autocompletion of territory name in commands and block duplicates. Example : 'my town' = 'my-town'
## New :

Add config option for double permission check when :
  • Breaking chest (BREAK_CHEST_NEED_INTERACT_CHEST_PERMISSION)
  • Breaking furnace (BREAK_FURNACE_NEED_BREAK_FURNACE_PERMISSION)

  • Luckperms integration
  • Luckperms context support + wiki page
  • Upgrades can be used to unclock luckperms permission

  • New placeholders :
  • %tan_player_colored_town_tag_or_empty%
  • %tan_player_colored_town_tag_or_{text to replace}%

  • If a territory max level is below 8, "MAX_LEVEL_REACHED" will be written instead of "LEVEL_LOCKED"
  • Setting a territory max level to 0 will lock the upgrade menu from a territory type Set by default for Regions and Nations

## Bug fixes

  • Fix duplicates message when using /tanadmin reload
  • Fix missing Lang files reload with /tanadmin reload
  • Update discordSrv to SphereLib 0.6.1
  • Fix Shift click not being blocked in TaN's GUI
  • Fix blocking TerritorySettings menu from players, blocking them from leaving**TODO ADD @ of creator**
  • Fixed BStat relocation
  • Fix internal error when deleting a non-occupied fort
  • fix max territory level offset in upgrade menu, allowing to upgrade 8 level above the maximum
  • Fix Upgrade menu previous/next buttons not updating level bar
  • Fix ability to create one private property above the max cap
  • Fix landmark not automatically unclaimed if prerequisites are no longer met
  • Removed all "early save" actions. This could cause errors in case of crash/force stop since only a part of the storage files where updated.
  • Fix double save each time a chunk were claimed/unclaimed

## Others

  • Completing removal of HeadUtils.java
  • Removing most of TownDataStorage singletons
## New :

  • Introducing Nations @dorukium
  • Words blocker for TAN chat + nations, properties and ranks names @dorukium
  • Add option to register a territory banner. It will be displayed instead of the current green(owner)/red(captured) banner.
  • Upgrades
  • Upgrades can now have a description. One step closer to becoming hoi4
  • Minor GUI improvement to Upgrade menu
  • new command : /tan claimarea @dorukium
  • Sudo admins can override PVP restrictions
  • New "getting started" page on the wiki @mapiatto
  • Admin can set money of territories from GUI
  • non-op players will now be able to use TaN's base commands by default
  • Option to change TRUE/FALSE values on placeholders

## Bug fixes
  • Fix Browse Region menu not opening if a player does not have a region of his own
  • Fix double "click to..." in property menu (set icon)
  • Remaining old ConfigUtil options have been removed. The bug will not happens to TaN anymore
  • Check why "upgrade level" is offset by 2 levels
  • Fix rank not being assigned when a territory is vassalized
  • Fix falling blocks from not falling in claimed chunk with "disable mob grief" turned off

## Others
  • Extended API for Wars and permissions
  • Default town upgrades have been changed @titanhammer_
  • Using github actions to pass all tests after each push & PR's ⁨@dorukium
  • Removing 200+ call of PlayerDataStorage, increasing stability and execution time⁩ (~70 remains)
  • Player ID's are now stored in UUID
  • Refacto Chunk code : No more ownerID in main ⁨⁨⁨⁨⁨⁨⁨⁨⁨⁨⁨⁨NewClaimedChunk⁩⁩⁩⁩⁩⁩⁩⁩⁩⁩⁩⁩
## New :

  • Config for town tags (townTagFormat)
  • It is no longer possible to create two planned attacks on the same time slot
  • Add option to forbid/prevent spliting territory chunks in half if it means that one part will no longer be linked. Will be applied to normal unclaim and wargoals unclaim (preventUnclaimOrphanChunks, default false).
  • Option to set relation after surrendering (default : non-aggression)
  • Option to forbid territory from leaving the war (enableLeavingWars)

## Bug fixes

  • Fix EnableTownPrefix config not being used.
  • Remove EnablePlayerPrefix config
  • Fix region being able to unclaim chunk with buildings
  • Fix wrong Lang on capture fort wargoal

## Others

  • Change word "prefix" to "tag" in the config. Some lines will be reset
  • Merging unclaim code between town and region
  • If a world has been deleted, unclaim all chunks inside + capital + buildings
  • Clear Lang of unused strings (173)

https://modrinth.com/plugin/towns-nations
# Towns and Nations 0.16.7

## New :

  • Region color at creation is now similar of the the capital color
  • If a chunk is occupied by a foreign power, it cannot be unclaimed by the rightful owner
  • Admin gui can now force the surrender of one side
  • Disable ability to move town capital while at war
  • New command /tan borders to show/hide territory boundaries
  • 3 Particles type depending on the player relation with the territory (Ally, Neutral and Hostile)
  • Remove force showing borders of defensive territory in wars

### New additions to wars
  • Diplomacy**
  • Declaring a war is now done in the War menu (rather than in Diplomacy -> Hostile)
  • Territory can only declare wars if relations enables wars (as of today, only hostile)
  • When declaring a war, all territory in alliances with the defender will join the war and set their relations to hostile to the attacker.
  • Add confirmation menu when declaring war showing all territory joining defender
  • It is no longer possible to surrender from the planned attack menu

  • Wars**
  • Add option to rename wars
  • Planned attack no longer have name + deleted menu
  • Switch territory participation in war from planned attack to war menu.
  • When a planned attack is set, all territory at war will join.
  • Option to requires admin approval to start a war. If set to true, planned attacks cannot be started until an admin approve.
  • Option to force surrender if % of total claims are captured (default : 70%).
  • Option to add a % of surrender process if capital is captured (default 20%)
  • Option to remove planned attack.


  • During assault**
  • Both side** can now capture chunks chunks
  • Options to specify what permission a player get in a chunk at war if held by an ally or an enemy. When a chunk is captured, permission switch.

## Bug fixes :
  • Fix renting property save into BDD
  • Fix mob ban constants
  • Fix missing "EMPTY" lang line
  • Fix bug asking regions to respect TerritoryClaimBufferZone with their own towns
  • Fix unclaim messages not showing to players
  • Fix region chunk not being deleted if no longer linked to a fort
  • Fix "Liberate" wargoal "CANNOT_BE_USED" message
  • Fix reversed "Fort captured" / "Chunk captured" values in attack debrief
  • Fix wither grief not being registered
  • Fix attacker side of a war always counted as the "initiator" of all planned attack, thus blocking the defending side from attacking
  • Fix countdown until attack not restarting after server restart
  • Fix error if several war fights for the same chunk
  • Fix defensive side not able to cancel its own planned attacks


## New :

New newsletters :
  • War starts
  • Attack declared
  • War ends

  • Set attack to "cancelled" if server was offline during the whole attack

## Bug fixes :
  • Added missing lang files for attacks
  • Fix attack not starting if the server start between attack start and end
  • Fixed daily transactions (taxes & salaries) not being capped in number of lines
  • Fix casualties not being counted during an attack
  • Fix ability modify an attack after it has started (and being able to cancel it)

## Others
  • Merge of TownsAndNations-API repo into TownsAndNations. This will speed up the developpement of a better API
  • merge canPlayerDoInternal of TownData and RegionData
  • Remove support from 0.15.1 old territory icon transition
# Towns and Nations 0.16.5

## New :

  • More options to ressources in upgrades :
  • :warning: **Old ressource config will no longer be read** :warning:
  • Option for quantity for each level
  • Option for custom name (optional)
  • Option for custom skin (optional)

  • War option to :
  • block days of the week from attacks
  • manage chunks capture time
  • manage forts capture time
  • enable/disable full claiming of all chunks in the radius of a captured fort (not protected by other forts)

  • Custom amount of tag letter
  • Added scope in the attack menu : All attacks / Future attacks only

  • New placeholders :
  • %player_location_property_exist% TRUE or FALSE
  • %tan_player_location_property_name% "no property found" or property name
  • %tan_player_location_property_is_owner% "no property found" or TRUE or FALSE
  • %tan_player_location_chunk_type_name% Wilderness, Landmark Town or Region
  • %tan_player_location_chunk_name% Wilderness, landmark name or territory colored name
  • %tan_player_location_pvp_enabled% TRUE/FALSE
  • [Wiki for placeholder has been improved](https://arcadia-9.gitbook.io/towns-and-nations/server-owners/placeholders)

## Bug fixes :
  • Fix missing player applications in the town application menu
  • Fix daily task not triggering
  • Fix property name and desc max size being set to 0 due to a Spherelib problem
  • Fix "AdminApproval" config file being override due to a Spherelib problem
  • Fix "add specific player" for permissions menu not opening

# Others
  • Replace all wrongly used List to Set :octagonal_sign:
  • Town and Region max level are now located in "upgrade.yml" config file
# Towns and Nations 0.16.4

## New :
  • New upgrade : chunk maintenance cost
  • Removed TownChunkUpkeepCost config
  • Removed RegionChunkUpkeepCost config
  • Added custom icon support for chunk permissions
  • Allows ranks for chunk permissions (Territory and Properties) **Old permissions will be reset :warning: **
  • Show number of players and ranks allowed in permission menu

  • More admin control over land permission :
  • Set default value (registered only, town, region, foreign...)
  • Lock permission (can't be changed by players)

  • "Conquer" war goals can now be used to unclaim chunks fail
  • Update internal API to manage Property owner (public or private)
## Bug fixes :

  • Fix Admin manage player menu using admin's town instead of target player's town
  • Fix bug that caused private property money check not using Vault integrated system
  • Fix Date on Attack newsletter showing "ENGLISH"
  • Fix Manage authorization button in property menu displaying Manage authorized players
  • Fix double Click to... in Manage players permissions
  • Fix From rented properties budget line wrong gains
  • Fix custom town colored name not showing on papi %tan_player_town_colored_name%
  • Fix chunk cost unused constants
# Towns and Nations 0.16.3 - Admins support and better transaction history

## New :

  • Admin can access transaction history from all players and territory
  • Admin can set money from players directly from the GUI

  • New transaction history : Chunk upkeep
  • Transaction now shows date and are sorted by dates
  • Add nbDaysBeforeTransactionDeletion to delete old transactions
  • Taxes and salaries transaction are merged by date if viewed by a territory for a better readability
  • Attacks already ended now shows the result of the attack (number of forts and chunks captured, number of deaths on each side, if it has been cancelled...)
  • New placeholder :
  • %tan_player_town_colored_name%
  • %tan_player_{player}_town_colored_name%
  • Biome check is now at the highest point of the middle chunk instead of y = 64 and added option to check the entire chunk
## Bug fixes :
  • Fix "admin browse towns/regions" menus not showing
  • Fix attack menu not showing if a war was stopped
  • Fix bug when surrendering in a war with already existing attacks
  • Fix Territory Tax Transaction using a wrong ID
  • Fix /tan not performing /tan help by default unlike other commands
  • Fix player check for blacklist commands during attacks being reversed
  • Add default Enum constructor to avoid missing enum in specific version
## Others :
  • Attacks are no longer stored in a separated file from Wars
  • Delete Old HeadUtil code used for displaying heads before the menu update
  • pre 0.16.0 Level to new level system is no longer supported
# Towns and Nations 0.16.2 - Quality of life and bugs fixes

## New :
  • Territory can no longer be deleted if at war to avoid errors
  • All admins menu use the new menu style
  • Month name are now localized with java Locale (English, French, Germany, Italy, korea, japanese and chinesse simpl & trad)
  • Upgrade looks of several menus(General settings, attacks,...)
  • Region can now use the mob ban menu
  • Mob ban menu now shows the Unlock mob ban requirement
  • Add description to confirmation menu when kicking a vassal
  • 2 new rank permissions :
  • Manage landmarks
  • Collect landmarks loot

## Bug fixes :
  • Fix color on newsletter scope (all scopes had the "selected" color)
  • Fix Admin war menu back arrow redirecting to Admin landmarks menu instead of main menu
  • Fix admin manage town menu redirecting to player main menu instead of the admin main menu
  • Add missing return option when setting up a landmark
  • Fix "Rename rank" not releasing the chat listener
  • Fix "Click to proceed" message being wrongly added to icons without actions
  • Fix attack time displaying an incorrect date in attack icons
  • Fix Selecting attack start time authorized slots being reversed
  • Fix attack menu returning to main menu instead of war menu
  • Add colored chuker box to chest protection

## Others :
  • Menu headers no longer no longer needs a String but a FilledLang or Langto avoid duplication of calls to the player language
  • AbstractTransaction now uses a Set to avoid doublons
# Towns and Nations 0.16.1 - Trade history rework

## New

  • Every monetary transaction is now stored. (player, territory, upgrades...)
  • Reworked transaction history menu for territory
  • Added transaction history for players

  • List of all stored transaction :
  • Player to player money transfer (from /tan pay)
  • Donate to treasury
  • Retrieve from treasury
  • Taxes (Player -> Town and Town -> Region)
  • Salary
  • Creating property
  • Selling property
  • Renting property
  • Upgrade cost


  • If a territory or a player does not have enough money to pay taxes, it will be taxed on what he still have (life is tough)

  • "Change scope" button visual rework

  • Optimized Newsletters ("mark all as read" no longer lag the server for 5 seconds)

  • "Town" chunk permission has been renamed "Self" to avoid confusion

## Bug fixes :
  • Check description, name and rank name max size maxSize
  • Fix ability to withdraw negative amount of money from a town
  • Fix property buy cost being multiplied twice in the owner display
  • Fix "Alliance" chunk permission being written "Region"

## Others :
townMaxRank is now territoryMaxRank. Custom value will be reset
## New

  • New upgrade GUI
  • Region now have upgrades
  • Prerequisites centralization :
  • Prerequisites now use the same style in all menus and upgrades
  • Upgrades can cost items alongside money

  • New rewards :
  • Claim rights on specific biome (or all)
  • Unlimited number of chunks ∞
  • Unlimited number of members ∞
  • Unlimited number of private properties ∞
  • Unlimited number of landmarks ∞
  • Adding new upgrades in the future will be easier



## Bug fixes :
  • Fix missing permission check when :
  • replacing town icon (custom head only)
  • claiming a landmark
  • Choosing a town tag
  • Open / Close application
  • Fix error when kicking a disconnected player from his town.
  • Fix claim success message being sent twice
  • Fix wrong error message when a player try to unclaim a region chunk without permission
  • Fix message "contested" not being shown when a chunk was contested during an attack
## Others :
  • Chunk claim cost is no longer set in the config.yml file but in the upgrades.yml files
# Towns and Nations 0.15.6

## **SphereLib 0.6.0 is mandatory**

## New

Config updates :
  • warBoundaryRadius : the radius (in block)
  • warBoundaryParticle : the type of particles used for war boundaries
  • propertyBoundaryParticles : the type of particles used for display properties

New placeholders :
  • player_town_tag
  • player_colored_town_tag

  • More information over relations in the relation GUI
  • Added a **truce period** to all positive relations. If enabled, relation cannot switch to anything below neutral for X days after relation has been removed. It can be disabled by setting it to 0.

  • Towns can create properties. Ranks with "manage property" permission can modify settings. Money from rent and sell will go to the town treasury.

## Bug fixes :
  • Fixed several cascading bugs causing each minute of a war to last 50 seconds
  • Fix missing info message when registering the number of chunk to conquer with the conquer war goal and the option to change town tag
  • Fix wrong config file being loaded between Spherelib's **ConfigUtil ** class due to SphereLib common storage. Bug is still present in some upgrades and database related configs and will soon be addressed.
  • Fixed personal and "ALL" authorization returning false if the authorized player had no towns.

## Others :
  • By default, all available chunk protection are enabled
## Towns and Nations 0.15.5

## New
  • Added new API endpoints :
  • TanProperty#getDescription
  • TanTown#getCapitalLocation

## Bug fixes :
  • Fixing all langs of 0.15.4 update
# Towns and Nations 0.15.4

## New :

  • Add balance check when selecting "create a fort" button.
  • Add minimum distance between 2 towns to disable settling too close to another existing town TerritoryClaimBufferZone
  • Added 2 new events to newsletter : Landmark claimed & Landmark lost

## Bug fixes :

  • Fix minimum version check for SphereLib not being set to 0.5.2
  • Fix message PLAYER_NOT_LEADER_OF_REGION to PLAYER_NO_PERMISSION when player does not have permission to claim region chunk only. Remanent from before the introduction of roles in regions.
  • Fix RegionAllowNonAdjacentChunks not being used
  • Fix missing lang : GUI_SETTINGS_CHANGE_TERRITORY_NAME
  • Fix missing placeholders on landmark rewards in admin menu

## Others :
  • Centralised code for towns and region claiming
  • All messages localised (better Lang#get)
# Towns and Nations 0.15.3

## New :

  • Towns can set a tax "per block" when creating a property.
  • Treasury menu is now localized
  • More flexibility over Relations. Each relation can be customized by admins over :
  • can PvP
  • Blocked commands (eg /pay %PLAYER% will block /pay with every player with a specific relation)
  • Can walk on territory

  • A property owner can authorize renter to invite friends in his property

## Bug fixes :

  • Fix right click listener listening to left clicks
  • Fix "War begin in 1 minute" and "War start" not being localized
  • Fix missing role check when changing territory name, description and capital position
  • Fix "Town" name used in region settings menu
  • Fix max property size constant not read
  • Fix double money character being used on /tan pay
  • Fix reversed role when declaring an attack

## Others :
  • Removed option enablePvpWhenRelationIs. It has been replaced by relationConstants
  • Improved code for Chat and Right click listeners
SUCCESS -> remove player
FAILURE -> keep player + send cancel message
CONTINUE -> keep player
  • Common message when a chat listener is used (stop using GUI_SETTINGS_CHANGE_TOWN_MESSAGE_IN_CHAT)
  • Claimed chunk storage is stored now stored with the other data files.
  • Change path of Archive file
  • Better handling if a crash happens during loading
Fix missing lang
# Towns and Nations 0.15.2

## New :

  • Ukranian translation by @dol4iua
  • Partial Catalan translation by @powerpolrr

  • Experimental "Offline mode" aimed to avoid calling mojang's api when not needed (onlineMode : false)
  • Added model data support for guis (menu.yml)

  • If landmarkEncircleToCapture : true and conditions are no longer met, landmarks will automatically be unclaimed.

  • Added capital chunk
  • First chunk of each town is now considered a "capital".
  • The capital cannot be unclaimed but can be freely changed by leaders. :octagonal_sign:
  • If TownAllowNonAdjacentChunks : false, all chunks will need to be linked to the capital. Otherwise they will be unclaim.


  • IfForts.useAsOutpost: true, forts can be created on wilderness chunks to act as outposts.

  • new Placeholders :
  • tan_player_{player name}_town_name -> Name of the town of a specific player
  • tan_player_{player name}_town_tag -> Tag of the town of a specific player
  • tan_player_{player name}_region_name -> Name of the region of a specific player

  • Only chunk at the boundary of a territory will be deleted when the upkeep is not paid. This will limit border gore
  • Added option to run a single command or one command per concerned player when a war start and end

## Bug fixes :

  • Fix reversed pagination buttons on new pagination system
  • Fix "Surrender" mechanic using looser side's wargoals
  • Fix fort constants not being read
  • Fix town tag not correctly applying when a player joins a town
  • Fix missing "change town tag" button

## Others :
  • Towns and Nations is now compiled in java 21.
  • Ended support for 1.19
  • Added [MockBukkit](https://github.com/MockBukkit/MockBukkit) for better tests
  • Owned landmarks ids are no longer stored with territory data. This will remove potential bugs while unclaiming landmarks
  • PlaceholderAPI integration has been reworked reduce complexity and execution time
# Towns and Nations 0.15.1

## New :

  • Command blacklist during attacks.
  • Full item support for territory icons (banner with pattern, enchanted items...).
  • Claimed chunks will now be protected from mob grief if enabled in general chunk settings.
## Bug fixes :
  • Fixed color in REGION_DIPLOMATIC_INVITATION_RECEIVED_1.
  • Fixed newsletter deletion not deleting specific newsletter data.
  • Fixed MaximumChunkConquer config not being used.
  • Fixed RegionAllowNonAdjacentChunks not being used.
  • Fixed deleting forts not updating the save file.
  • Fixed GUI_TOWN_ATTACK_NO_CLAIMED_CHUNK not being translated.
  • Fixed error if /json/folder was not created when a war is created.
  • Fixed region leader being able to exclude his own town.
  • Fixed NO_ICON icon type not being implemented
  • Fixed pagination navigation in several town menus
## Others :
  • Deprecated TownData and RegionData merged in TerritoryData have been deleted
  • Only one "Conquer" war goal can be added per war.
  • Better Json Storage. Data have been moved to storage/json
  • Planned attack menu has been switched to the new menu system.
  • Reworked internal code for the three war phase (War -> Planned Attack -> Attack) for a better code.
  • Region capital" has been removed to only keep region leader.
  • Excluding a town from a region is now done by a right click with confirmation
Towns & Nations Icon
Download Towns & Nations
Select game version
Select platform