lp_has_context

Passes when the specified LuckPerms context is active for the player.

Categories: permission

Required arguments

Key(s)DescriptionType
keyThe LuckPerms context key, for example server, world, or gamemode.STRING

Optional arguments

Key(s)DescriptionTypeDefault
valueThe value the context must have. If not specified, any value passes.STRING

Example

conditions:
  - id: lp_has_context
    args:
      key: world
      value: world_nether # ← Optional