
Towns & Nations
A role-playing Minecraft plugin for immersive town creation, alliances, and warfare
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-> selftan.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 joincommand 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 setmoneyand/tanadmin addMoneysyntax 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
- Add spawn to Regions and Nations. (
-
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 leavingTODO 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
EnableTownPrefixconfig not being used. - Remove
EnablePlayerPrefixconfig - 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)
/plugins/towns-nations
- Config for town tags (
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 bordersto 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-APIrepo intoTownsAndNations. This will speed up the developpement of a better API - merge
canPlayerDoInternalof 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
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
TownChunkUpkeepCostconfig -
Removed
RegionChunkUpkeepCostconfig -
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 playermenu using admin's town instead of target player's town - Fix bug that caused private property money check not using Vault integrated system
- Fix
Dateon Attack newsletter showing "ENGLISH" - Fix
Manage authorizationbutton in property menu displayingManage authorized players - Fix double
Click to...in Manage players permissions - Fix
From rented propertiesbudget 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
nbDaysBeforeTransactionDeletionto 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
/tannot performing/tan helpby 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 menuback arrow redirecting toAdmin landmarks menuinstead ofmain menu - Fix
admin manage town menuredirecting toplayer main menuinstead of theadmin 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
Stringbut aFilledLangorLangto 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 :
townMaxRankis nowterritoryMaxRank. 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
-
Reload now works on upgrades
-
Upgrade wiki updated (player & admin pages)
-
Building menu created (Forts and properties)
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.ymlfile but in theupgrades.ymlfiles
-
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 boundariespropertyBoundaryParticles: 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

