#permission requirement with context
1 messages · Page 1 of 1 (latest)
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
You can't do that with the has permission requirement type.
I would suggest you look into LuckPerms placeholders. I know there are placeholders for checking whether a player has a permission or not. I am not sure if it also supports contexts though.
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'