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
toPLAYER_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 byrelationConstants
- 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
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.
-
If
Forts.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 playertan_player_{player name}_town_tag
-> Tag of the town of a specific playertan_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 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 and Nations 0.15.0 (War update)
New Defensive Building: Fort :fort:
- All legacy Strongholds will be deleted.
- The "Building" menu has been created. It is possible to build forts from there. Other buildings will be added in the future.
- Fort protects the surrounding chunks from enemy capture during wars.
- Capturing a Fort requires holding the Fort Flag for a certain amount of time.
- Fort protection and capture radius can be set by admins
War Goals
- Multiple war goals can now be set to a single attack.
Attack Phase
- Attackers can now capture individual enemy chunks by holding them for a short duration.
- Attackers can capture forts to disable their protection radius. The protection will then work for the attackers
Map plugin update :
- A new "Fort" icon will be added to the interactive tanmap GUI to easily identify these strategic points.
- Removed unwanted log text
- Bluemap and Dynmap now have custom icons (:fort: :trader: )
Bug fixes
- Fixed memory leak with newsletter DB connection
- Fixed property sign and support not being breakable even after property is deleted
- Fixed attack starting even if it has been cancelled before
- Fixed Relation proposal and relation accepted newsletter not being registered
- Fixed reverse wording "has worsen/has improved"
- Fixed "Relation proposal" newsletter not showing to the proposed side if set to "concerned only"
- Fixed "add relation" menu iterator
- Fixed Worldguard interactions (will probably be changed in the near future)
Others
- Selecting blocks when creating a property will now only work while no item is held
- Creating a property is now localized in the player language.
- Better security check to avoid error with missing region
Towns and Nations 0.14.8
New :
- Event system is added into the API.
- All Events previously triggered for the newsletter can now be used by external plugins to interact with TAN
- Newsletters now shows the date of the event
- Old newsletter will be deleted after a certain number of days set by admins (base : 30 days)
- Removed the fixed 7 days limit to newsletters
- Added confirm message when
/tanadmin skipday
is called - Option to disable individuals protection entirely from the plugin
Bug fixes
- Fixing wrong lang line used on "rename town" button
- Fixing ChangeTownNameCost and ChangeRegionNameCost variable not being used
- Fixing "null" displayed on all upgrades
Towns and Nations 0.14.7
New :
- Auto center in the main menu if kingdoms or regions are disabled.
- Option to allow claim landmarks only if territory is adjacent.
- Option to set a price to claiming landmarks.
- Added confirm menu when claiming landmark.
- Property permission
- This is the same system as chunk permission. Allow players or specific roles precise actions. For now, only the player's town is taken into account. A new system will handle both region and town relation in the next update.
Bug fixes
- Fix new war period not being modifiable
- Fix missing lang files
Others
- Due to the change of how properties chunk permission are handled, all trusted players will be lost and will need to be added again.
- Properties and landmarks will be deleted if their custom blocks are destroyed (sign, chests...). This will allow to avoid crash due to a map reset.
New :
- API update (canPlayerDoAction() and doesPlayerHavePermission())
- Worldguard support (overriding TAN's claims)
- MySQL support
- Added server timezone and player timezone. This will be used in further updates (Upgrades, war, votes...)
- Authorized attacks periods. Admin can now define when attacks can be waged
Bug fixes
- Fixing dynamic lang file. It can now be freely edited.
- Fixed a bug with ghost town causing an error on dynmaps plugins
New :
-
Vietnamese update by @minhboang11.tuan
-
Menu rework for cleaner code and a better user experience
- It is now possible to modify icons used in all menus
- This will allow in the future for a full command support of the plugin
- Towns have less power over player properties : They can no longer edit the name, the description, prices and sell/rent it. They can still delete it and kick renter.
- Properties can now have an icon like towns or ranks
- Deleting properties now have a confirm screen, like towns
- Some menus have not been update yet. They will be for future reworks
-
Properties taxes have been changed : They now add up to the base price.
Bug fixes
- Fixed "territory vassal proposal" newsletter not loading properly
- Fixed ghost town not being able to display their icon
- Fixed wrong permission check used to kick a player from a town
- Fixed player being able to place and loose items in menus
- Fixed TRUE/FALSE placeholder displaying wrong text
- Disbanding a town will no longer keep its ID stored if it was part of a region
Other
AutoUpdateLangFile: true/false
has been deleted. The new config system will automatically add specific missing lines without overriding everything else
**Links : ** https://modrinth.com/plugin/towns-nations
Towns and Nations v0.14.4
New :
-
Add separate wilderness rule for every world
-
Reload command take into account lang files
-
Option to enable logs on private text in the console
-
Part of Italian translation by @imseo_
-
Territory welcome message :
- Option to display towns and regions from the color of the town/region
- Entering a territory claimed chunk will now also display the description of the town
- Option to only keep the old notification without town description
-
New notification system
- Admins can set who will get notifications:
- No one
- Concerned only
- All players
- Notifications concerned :
- Town created
- Player applied to join a town
- Player joined a town
- Town deleted
- Town join a region
- Town left a region
- Diplomacy proposal
- Diplomacy proposal accepted
- Attack declared
- Attack won/lost
- Attack avoided (one side backed down)
- Admins can set who will get notifications:
-
/tan map
- Added dot to point out player location
- Chunk coordinates now display normal coordinates instead of chunks one (×16)
- Removed map rotation by default. It can be brought back from the config file if anyone missed being lost.
Bug fixes
- Fixed region leader being able to quit his town if he was not the town leader.
- Fixed "Mark all as read" button
- Fixed first line of text of
/tan map
being clickable
Other
- Town and Region balance are deprecated and will be removed in 0.15.0 to centralize money storage to the parent class
- Better handling on getRelationWithPlayer()
- Newsletters are now stored on database (SQLite by default). Another step to allow full database support.
**Links : **
New :
- Turkish translation
- German translation
- Added "No one" permission for claims. allowing territory to only add trusted members for actions
- It is no longer possible to name a region the same name as a town
/tanadmin sudo <player>
can now be executed from all commands senders.- "Mark all as read" button in the newsletter
Bug fixes
- Fixed region not storing new players into the default role, leading to the ability to delete this role if a new default role has been set and players are still in.
- Fixed missing ranks when switching from old versions (0.14.0 & 0.14.1) @starkdev
** Other**
- It is no longer possible to name a region the same name as a town. This will allow each name is only assigned to one territory and help chat commands and Placeholder API
- Removed legacy teleportationData code.
New :
- Chat listener event will reopen GUI if a player was using it before
- Add option to remove economy icon
Bug fixes
- Fixing tax history showing "player do not have enough money" when taxes are at 0
- Fixing townUpgrade file not being modifiable (SphereLib update)
- Fixing Fixing wrong back arrow in ChunkSettings
- Adding missing GUI_BROWSE_TERRITORY_ICON
- Adding missing payment when a town is claiming chunks
- Fixing /tan sudo <Player> not working if player was using himself as the 2nd argument
- Facing east, south and west now correctly shows with
/tan map
**Other : **
- Adding 50+ Unit test to reduce bug introductions between major versions
PlayerHeadIcon
class is no longer extendingCustomIcon
. They now implement theICustomIcon
interface. Some icons could be lost.getBenefits
now send back 0 if no upgrade was found in parameters- Removed compatibility for old color code. Some color may be lost while updating
- Removed option to allow name duplicates for towns and regions. This will enable a faster and cleaner placeholder API in a future update
SphereLib v0.4.3 is required !
All plugins needs to be updated (Towns and Nations and maps addons, SphereLib update is only QoL and optional)
New :
- Chat scope name is now localised in language
- New placeholders :
%tan_chat_mode%
: get the chat mode of the player%tan_chat_mode_{playerName}%
: get the chat mode of a specific player
- Wiki has been updated #📜・wiki
- A developper API has been created :
- Installation guide can be found on github readme and the #📜・wiki .
- new
/tanserver landmarkSetStoredLimit <id> <value>
to change the maximum number of days a single landmark can store resources - new
/tanserver landmarkUpdate <id?>
to add one day to a landmark resource storage /tanadmin sendReport
command now include a copy of the config file and a list of all plugins installed on the server- using /tan map will now show a ✖ if the chunk cannot be claimed due to blacklist
Bug fixes
- Fixed a bug that did not properly delete all properties of a town if it was deleted
- Fixed a bug that duplicated [TAN] placeholder in messages broadcasted to an entire territory
**Other : **
- Several old attributes stored in
TownData
are now stored in theTerritoryData
class. Old attributes are kept until 0.15.0 to allow a smooth transition to the new model