lp_give_permission

Grants a LuckPerms permission node to the player while the holder is active, removing it when the holder is disabled.

Categories: permission

Required arguments

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

Optional arguments

Key(s)DescriptionTypeDefault
valueThe value of the permission. Set to false to explicitly deny it.BOOLEANtrue
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 never saved to storage.BOOLEANtrue

Example

effects:
  - id: lp_give_permission
    args:
      permission: myplugin.vip.access
      value: true # ← Optional
      contexts: # ← Optional
        - "server=survival"
      transient: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue