LuckPerms

LuckPerms

41.4k Downloads

Adding not equal operator to context

Poggicek opened this issue ยท 2 comments

commented

I could not find something like requests on GitHub so I marked it as an issue, sorry.
It would be nice to have more comparison operators for contexts, for example having group/permission in every world except for "spawn". /lp user NoSuchFieldError permission set * world!=spawn
Or having multiple contexts. like /lp user NoSuchFieldError permission set * world=spawn && world=test

commented

I mean the first one can be easily achieved like this:

/lp user Andre_601 permission set * true
/lp user Andre_601 permission set * false world=spawn

That would allow * on a global/server-wide scale, while it is denied in the world spawn (per world perms override global ones.)

And you can define your own kind of context, to then use it in a permission.
More info can be found here

commented

Oh, you are right. I think this is great solution, because now he doesnt have to update whole editor just for that stupid thing, it would be nice to notice it in wiki page for contexts