CE AAPP
CE AAPP SpigotCE AAPP GitHubConditionalEvents
ConditionalEvents addon
ConditionalEvents addon
  • ๐Ÿ”ฎCE AAPP
    • ๐Ÿ“ŒStarting information
    • โš™๏ธInstallation or updation
    • ๐Ÿ—’๏ธLogical notations
    • Actions
      • ๐Ÿ”ŒPlugins actions
        • change_balance
        • change_oraxen_block
        • change_items_adder_block
        • drop_items_adder_item
        • show_end_credits
      • ๐ŸƒEvents actions
        • change_projectile
      • ๐ŸŒIndependent actions
        • manage_inventory
        • change_chat
        • change_block
        • change_AI
        • change_weather
        • change_time
        • change_freeze
        • change_fire
        • create_explosion
        • change_gravity
        • parse_placeholder
        • change_speed
        • change_ticks_lived
        • launch_projectile
        • change_gliding
        • change_invulnerable
        • change_movement
        • change_name
        • change_item
        • manage_recipe
        • change_fly
        • change_craft
        • change_air
        • drop_current_item
        • attack_entity
        • change_passenger
        • teleport_entities
        • change_entities
        • player_break_block
        • change_effect
        • make_damage
        • change_velocity
        • change_health
        • change_area
        • change_statistic
        • manage_mysql
    • Placeholders
      • ๐Ÿ”ŒPlugins placeholders
        • Placeholder for LuckPerms permissions with contexts
        • Placeholder for real nickname in Essentials based on custom nickname
      • ๐ŸŒIndependent placeholders
        • Placeholder for items
        • Placeholder for the highest block at a location
        • Placeholder for random block in area
        • Placeholder for biome by coordinates
        • Placeholder for entities in radius
        • Placeholder for processing arrays
        • Placeholder for different team information /team
        • Placeholder for custom data
        • Placeholder for different entity information
        • Placeholder for block lighting
        • Placeholder for working with MySQL
    • ๐Ÿ”งModifying the addon
Powered by GitBook
On this page
  1. CE AAPP
  2. Placeholders
  3. Plugins placeholders

Placeholder for LuckPerms permissions with contexts

A placeholder that allows you to check if a group or player has a permission with contexts, it is also possible to check the current contexts of the permission.

PreviousPlugins placeholdersNextPlaceholder for real nickname in Essentials based on custom nickname

Last updated 21 days ago

YOU NEED THE PLUGIN FOR THIS TO WORK.


Meaning

The usual LuckPerms placeholders do not allow you to check permission with specific contexts. With this placeholder you can check for context specific permissions for both groups and players.


Format

Check presence of permission:

%CEP_lp_has_permission_in_contexts_<player|group>_<permission>_<contexts>% # Check if the permission has the specified contexts

<player | group> โ€“ the group or player to check (it supports offline players and underscores in the names as well); (MANDATORY)

<permission> โ€“ the permission to check; (MANDATORY)

<contexts> โ€“ the contexts of the permission to check, the contexts are specified comma separated, first the context name, then its value with =, for example: server=test,world=nether. (MANDATORY)


Get contexts of permission:

%CEP_lp_get_permission_contexts_<player|group>_<permission>_(optional) <contexts>% # Get all or certain (if specified) contexts of a permission

<player | group> โ€“ the group or player to check (it supports offline players and underscores in the names as well); (MANDATORY)

<permission> โ€“ the permission to check; (MANDATORY)

<contexts> โ€“ the contexts of the permission to get (you can skip it to get all contexts), the contexts are specified comma separated, and only the names of contexts, without their values, for example: server,world. (OPTIONAL)


Use "แต•" symbol instead of underscores in <permission> and <contexts>!


Targets
  • LuckPerms groups;

  • Players.


Where is useful

For example, if you need to check if a player has a specified permission in certain contexts, or get contexts of a certain permission from a player.


Examples
%CEP_lp_has_permission_in_contexts_{player}_TestPermission_server=TestServer% # Check if the player has permission with the specified contexts
%CEP_lp_get_permission_contexts_{luckperms_primary_group_name}_TestPermission2% # Get all contexts of the specified permission from the group

๐Ÿ”ฎ
๐Ÿ”Œ
LUCKPERMS