lp_has_context
Passes when the specified LuckPerms context is active for the player.
Categories: permission
Required arguments
| Key(s) | Description | Type |
|---|---|---|
key | The LuckPerms context key, for example server, world, or gamemode. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
value | The value the context must have. If not specified, any value passes. | STRING |
Example
conditions:
- id: lp_has_context
args:
key: world
value: world_nether # ← Optional