lp_has_permission

Passes when the player has the specified permission node in LuckPerms.

Categories: permission

Required arguments

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

Optional arguments

Key(s)DescriptionTypeDefault
contextsThe 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"