Download qGP-Contexts — Minecraft Mods — MetaMods

qGP-Contexts

Active

Downloads

0

Last update

1 year ago

Versions

1.21 — 1.21.3
Server
Control
Utils

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 with huskclaims: in context keys
  • HuskClaims doesn't support the claim-id context
  • 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.sethome permission to true as you normally would
  • Add a rule setting essentials.sethome to false with context griefprevention:trust-build=false

GP Contexts Permissions Example

Project members
QarthO

QarthO

Developer

Created: 19 Jul 2024

ID: 38558