This release of
HuskTowns adds support for
LuckPerms contexts letting you fine-tune what commands/permissions players can do based on their context with HuskTowns (in a claim, in a town, build access, etc).
- Added an integration with the LuckPerms plugin! HuskTowns now provides the following LuckPerms permission contexts:
- husktowns:claim-town - name of the town claiming the player is standing in
- husktowns:in-claim - true/false if a player is in a claim or not
- husktowns:can-build - true/false if a player can place and break blocks
- husktowns:can-open-containers - true/false if a player can use containers
- husktowns:can-interact - true/false if a player can interact (right click) with blocks and entities
- husktowns:standing-in-own-town - true/false if a player is standing in a claim owned by the town they are in
- husktowns:is-town-member - true/false if a player is a member of a town
- husktowns:town - name of the town the player is in
- husktowns:town-role - the player's role in their town; mayor, resident or trusted
- LuckPerms integration can be disabled in the plugin config.yml under integrations --> luckperms --> enabled:true/false
- API: Fixed an issue where the getPlayerAccess method returned wrongly when public access flags were set.
This update is a simple drag+drop upgrade from HuskTowns 1.5.4. Thanks!