qGP-Contexts
An addon for the GriefPrevention plugin that provides contexts for the LuckPerms permission system. Now also features compatibility with HuskClaims!
System Requirements
To use this mod, you need:
- Paper server or its forks version 1.21 and above (Spigot not supported)
- Java 21 or newer
- LuckPerms plugin installed
- GriefPrevention or HuskClaims plugin
Available Contexts
The mod adds the following contexts for LuckPerms:
| Context Key | Description | Example Value |
|---|---|---|
griefprevention:claim-id |
ID of the claim the player is in | 32 |
griefprevention:in-claim |
Whether the player is in a claim | true |
griefprevention:in-admin-claim |
Whether the claim is an admin claim | false |
griefprevention:is-owner |
Whether the player is the claim owner | false |
griefprevention:trust-access |
Whether player has access trust level | true |
griefprevention:trust-build |
Whether player has build trust level | true |
griefprevention:trust-edit |
Whether player has edit trust level | false |
griefprevention:trust-inventory |
Whether player has inventory trust level | true |
griefprevention:trust-manage |
Whether player has manage trust level | false |
Note: Claim owners automatically get true for all trust level contexts when in their own claim.
HuskClaims Support
For use with HuskClaims:
- Replace the
griefprevention:prefix withhuskclaims:in context keys - HuskClaims doesn't support the
claim-idcontext - Custom trust levels are also supported!
Example Setup
Want to prevent players from setting homes in claims where they don't have build trust? You can do the following:
- Set the
essentials.sethomepermission totrueas you normally would - Add a rule setting
essentials.sethometofalsewith contextgriefprevention:trust-build=false
