lp_add_permission

Sets a permission on the player in LuckPerms.

Categories: permission

Required arguments

Key(s)DescriptionType
permissionThe permission node to set.STRING

Optional arguments

Key(s)DescriptionTypeDefault
valueThe value of the permission. Set to false to explicitly deny it.BOOLEANtrue
durationHow long the permission should last, in seconds. Permanent if not specified.EXPRESSION
contextsThe LuckPerms contexts to apply the permission in, as a list of key=value entries.STRING_LIST[]
transientIf the permission should be added transiently, meaning it is lost on server restart.BOOLEANfalse

Trigger parameters required

  • PLAYER

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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue