From 460de11cc16fb5822807206f4351a0e0a52e6982 Mon Sep 17 00:00:00 2001 From: LlmDl Date: Sat, 26 Oct 2024 10:21:42 -0500 Subject: [PATCH] - Update Resident Modes system. - The modes system (townclaim, map, spy) code has been updated to more robust system than just a simple list. - Adds the ability to assign a permission node to a mode, and when present, will require the player to have the permission node to toggle a node. - This permission node is not required if the mode is part of a player's default modes set via the permission plugin. - Additionally, the ability to clear a residents modes via command now requires a permission node. - All together this makes it possible for admins to set modes that players cannot remove. - Modes can have types, allowing for modes to be exclusive of each other, ie: you can no longer have townclaim and townunclaim modes active at the same time. - API: Added ResidentModesInitializeEvent with which plugins can add Resident Modes. - New Permission Nodes: - No changes required in the townyperms.yml. - towny.command.resident.set.mode.clear - towny.command.resident.toggle.bedspawn - towny.command.resident.toggle.bordertitles - towny.command.resident.toggle.ignoreotherchannels - towny.command.resident.toggle.infotool - towny.command.resident.toggle.plotgroup - towny.command.resident.toggle.townborder - towny.command.resident.toggle.townunclaim --- Towny/pom.xml | 2 +- Towny/src/main/resources/ChangeLog.txt | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Towny/pom.xml b/Towny/pom.xml index e02c7818d0..dee2f76f5f 100644 --- a/Towny/pom.xml +++ b/Towny/pom.xml @@ -13,7 +13,7 @@ towny jar - 0.100.4.7 + 0.100.4.8 diff --git a/Towny/src/main/resources/ChangeLog.txt b/Towny/src/main/resources/ChangeLog.txt index dfd55a8fca..a2003983a8 100644 --- a/Towny/src/main/resources/ChangeLog.txt +++ b/Towny/src/main/resources/ChangeLog.txt @@ -10079,4 +10079,23 @@ v0.92.0.11: - The UUID version to use for non-player accounts. This is used so that economy plugins can more easily differentiate between player and NPC accounts. - The default is -1, which disables modifying npc uuids. 0.100.4.7: - - Fix regression from 0.100.4.2 which caused empty .tar backups to be created. \ No newline at end of file + - Fix regression from 0.100.4.2 which caused empty .tar backups to be created. +0.100.4.8: + - Update Resident Modes system. + - The modes system (townclaim, map, spy) code has been updated to more robust system than just a simple list. + - Adds the ability to assign a permission node to a mode, and when present, will require the player to have the permission node to toggle a node. + - This permission node is not required if the mode is part of a player's default modes set via the permission plugin. + - Additionally, the ability to clear a residents modes via command now requires a permission node. + - All together this makes it possible for admins to set modes that players cannot remove. + - Modes can have types, allowing for modes to be exclusive of each other, ie: you can no longer have townclaim and townunclaim modes active at the same time. + - API: Added ResidentModesInitializeEvent with which plugins can add Resident Modes. + - New Permission Nodes: + - No changes required in the townyperms.yml. + - towny.command.resident.set.mode.clear + - towny.command.resident.toggle.bedspawn + - towny.command.resident.toggle.bordertitles + - towny.command.resident.toggle.ignoreotherchannels + - towny.command.resident.toggle.infotool + - towny.command.resident.toggle.plotgroup + - towny.command.resident.toggle.townborder + - towny.command.resident.toggle.townunclaim \ No newline at end of file