Enabling commands only in certain regions
I have Extra Contexts with luckperms and am trying to limit some commands to only work within certain regions. The challenge is when these commands are available by default to all. I'm having a hard time figuring out how to not allow them to be used outside that region.
An example is we have a casino, and within that casino have quests, etc. The server is built in a semi-rpg fashion and the intent is for certain commands only to be accessible via npcs in the area.
I've attempted to disallow the command in global and specifically allow it within the casino region, but that doesn't appear to be cutting it.
11 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by laser712#0
do they not need permissions
Generally correct. Most servers (understandably) probably would not want them to be locked for all users. But I do.
Example: Lucky Wheel daily rewards
tbf adding permission requirements shouldnt be hard at all
I wouldn't think so. I somehow got it working on my season 1 server but even when comparing between season 1 and season 2...I'm not remembering how I did it
does casino have higher priority
than global
I am not aware of how to set priority to contexts
i meant the region itself
I would think no, the flags in casino override flags in global.
even such -- does worldguard priority affect context priority?
well i'd think it changes what region it thinks ur in
if theres 2 overlapping ones
you can be in more than one region
but i get what you're saying.
I wish there was a way to change rule priority
or even to use exclusionary contexts. For instance "not in specific region"
Fixed.
Instead of disabling in global region, I disabled without context and then enabled with the context of being in the region and that appeared to work