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

Towns & Nations

by Leralix • Downloads: 112 • 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

How to Install Towns & Nations (Plugin)

Towns & Nations by Leralix is verified for Paper, Purpur, Spigot across Minecraft versions 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 (latest release: 1.0.5-26.2, file size: 21.1 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2) and platform (Paper, Purpur, Spigot).
  2. Make sure you have the compatible loader or environment installed for Paper, Purpur, Spigot.
  3. Move the downloaded Towns & Nations file into your Minecraft .minecraft/plugins folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2
Paper Purpur
2mo ago 62
26.1.x 1.21.x
Paper Purpur
2mo ago 31
26.1.x 1.21.11
Paper Purpur
2mo ago 21
1.21.x 1.20.x
Paper Purpur
2mo ago 15
26.2 26.1.x 1.21.11
Paper Purpur
2mo ago 12
26.1.x 1.21.11
Paper Purpur
2mo ago 10
26.1.x 1.21.11
Paper Purpur
2mo ago 9
26.1.x 1.21.11
Paper Purpur
2mo ago 8
26.1.x 1.21.11
Paper Purpur
2mo ago 7
1.21.x 1.20.x 1.19.x
Paper
2mo ago 6
1.21.x 1.20.x 1.19.x
Paper
2mo ago 6
1.21.x 1.20.x 1.19.x
Paper
2mo ago 5
1.21.x 1.20.x 1.19.x
Paper
2mo ago 5
1.21.x 1.20.x 1.19.x
Paper
2mo ago 4
1.21.x 1.20.x 1.19.x
Paper
2mo ago 4
1.19.x
Paper
2mo ago 4
1.21.x 1.20.x 1.19.x
Paper
2mo ago 4
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 3
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 2
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 1
1.21.x 1.20.x 1.19.x
Paper Spigot
2mo ago 1
1.20.x 1.19.x
Paper Spigot
2mo 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 & Nations Icon
Download Towns & Nations
Select game version
Select platform