#permission requirement with context

1 messages · Page 1 of 1 (latest)

jovial sorrel
#

hey, i am wondering how i could check for permissions with a specific context, for example i have luckperms synced over multiple servers and i want to sell homes on 2 different servers, then i would need to check if the player has perms essentials.homes.1 with the context of pvp_server , how could i do that?

#
    click_requirement:
      requirements:
        homes:
          type: has permission
          amount: essentials.homes.1

i have this but this would check without a context so if the user bought a home on the different server and then on another different server again it would bug already

light quartz
magic pagoda
#

Run /papi parse me %luckperms_check_permission% if it shows contexts. you can make a JS Expression to check for it

#

or a string contains

#

Oh blitz, we were over thinking it

#

@jovial sorrel Why not just have a click_requirement for if they are in that specific server

#

Yes, its redundant however. You can do;

input: "%server_name%"
output: "MyServer"```

For each server
#

Oh wait, nvm. That wont work'

magic pagoda
#

@jovial sorrel %luckperms_check_permission_<perm>%

#

Staff said that checks for contecks