lp_add_permission
Sets a permission on the player in LuckPerms.
Categories: permission
Required arguments
| Key(s) | Description | Type |
|---|
permission | The permission node to set. | STRING |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
value | The value of the permission. Set to false to explicitly deny it. | BOOLEAN | true |
duration | How long the permission should last, in seconds. Permanent if not specified. | EXPRESSION | |
contexts | The LuckPerms contexts to apply the permission in, as a list of key=value entries. | STRING_LIST | [] |
transient | If the permission should be added transiently, meaning it is lost on server restart. | BOOLEAN | false |
Trigger parameters required
Example
effects:
- id: lp_add_permission
args:
permission: myplugin.vip.access
value: true # ← Optional
duration: 86400 # ← Optional
contexts: # ← Optional
- "server=survival"
transient: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |