Skip to content

Commit

Permalink
- Update Resident Modes system.
Browse files Browse the repository at this point in the history
    - 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
  • Loading branch information
LlmDl committed Oct 26, 2024
1 parent 775b1d8 commit 460de11
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Towny/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<artifactId>towny</artifactId>
<packaging>jar</packaging>
<version>0.100.4.7</version>
<version>0.100.4.8</version>

<licenses>
<license>
Expand Down
21 changes: 20 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- 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

0 comments on commit 460de11

Please sign in to comment.