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