regex for worldname context
david-bla opened this issue ยท 3 comments
Hi lucko,
thank you for this awesome project!
I just tried to use regular expressions in the context of worldnames.
Should this work? This repo is well structured but also sophisticated and I was not able to find this in the code.
I am used to give worldnames some suffix like world_001
but things like R=world_\d{3}
or similar are not working.
Thank you in advance
@BrainStone thank you for your opinion.
-
This request is about using multiple "world" keys for each permission rule.#1870
-
Is about adding a context based filter for#1792
permission info
command - for ingame text output.
This is a duplicate of#819
-
Includes the filter from#819
#1792
and for thesearch
command.
My request is different. It is about using the supported regex syntax R=<expr>
with the world
.
Specified in https://github.com/lucko/LuckPerms/wiki/Advanced-Setup#regex
Regex
LuckPerms has support for regex when defining permission nodes and server/world names.
[...]
Apologies, the wiki is incorrect there. This was previously a supported feature but was since removed to make way for the contexts system. (https://github.com/lucko/LuckPerms/wiki/Context)
Now, instead of having "world specific" or "server specific" assignments, we just have context specific assignments.
Currently context specific assignments work only on case insensitive matching.
This isn't something I'm keen to change -- adding regex into the mix here really complicates things.
So, the other options you have to implement similar behaviour is:
- World rewrite rules (see the config file for this)
- Implement / define your own context (see here)