lp_has_permission
Passes when the player has the specified permission node in LuckPerms.
Categories: permission
Required arguments
| Key(s) | Description | Type |
|---|---|---|
permission | The permission node to check. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
contexts | The LuckPerms contexts to check the permission in, as a list of key=value entries. | STRING_LIST | [] |
Example
conditions:
- id: lp_has_permission
args:
permission: myplugin.vip.access
contexts: # ← Optional
- "server=survival"