Перейти к основному содержимому

LuckPerms Facts

Facts allow you to create conditions based on a player's LuckPerms data. They return values that can be used in requirements or filters.

Available Facts

Fact IDTypeDescription
has_permission_factBooleanReturns true if the player has the specified permission.
in_group_factBooleanReturns true if the player is a member of the group.
primary_group_factStringReturns the name of the player's primary group.
luckperms_meta_factStringReturns the value of a specific meta key.
luckperms_prefix_factStringReturns the player's current prefix.
luckperms_suffix_factStringReturns the player's current suffix.

Configuration

Has Permission

permissionString

The node to check.

In Group

groupNameString

The group to check membership for.

Meta Fact

keyString

The meta key to retrieve.

Example Usage

# Only trigger if the player has essentials.fly
condition:
has_permission_fact:
permission: "essentials.fly"
# Check if player is an Admin
condition:
primary_group_fact:
equals: "admin"