Luckperms Contexts

If you are using LuckPerms and would like to restrict performing certain commands or actions in claims on your server, or restrict based on a player's town, their role and other HuskTowns data, you can make use of the additional LuckPerms contexts provided by HuskTowns to do so!

Requirements

  • LuckPerms v5.3+ installed on your server
  • HuskTowns installed on your server
  • In HuskTowns' config.yml, ensure enabled: is set to true under the integrations --> luckperms section of the file.

Contexts provided by HuskTowns

ℹ️ See the LuckPerms Wiki for how to make use of contexts.

ContextDescription
husktowns:claim-townname of the town claiming the player is standing in
husktowns:in-claimtrue/false if a player is in a claim or not
husktowns:can-buildtrue/false if a player can place and break blocks
husktowns:can-open-containerstrue/false if a player can use containers
husktowns:can-interacttrue/false if a player can interact (right click) with blocks and entities
husktowns:standing-in-own-towntrue/false if a player is standing in a claim owned by the town they are in
husktowns:is-town-membertrue/false if a player is a member of a town
husktowns:townname of the town the player is in
husktowns:town-rolethe player's role in their town; mayor, resident or trusted