CraftBook icon indicating copy to clipboard operation
CraftBook copied to clipboard

[Feature request] More logical permission nodes

Open ESP4Ever opened this issue 5 years ago • 3 comments

Hi and thank you for a such funny plugin! I just started to use it and the first disadvantage i found is permissions. F.e. craftbook.mech.bridge.use - if I'd like to give USE ALL mechanics permission to the player I need to create a huge list of craftbook.mech.XXXXX.use (craftbook.mech.[asterisk].use wildcard doesn't work) Would it be possible to move mechanic's name to the end? In this case my task will be much easier - craftbook.mech.use.[asterisk]

ESP4Ever avatar Apr 20 '20 07:04 ESP4Ever

My main issue with this is that "use" is conceptually different between many of the mechanics, and allowing a blanket "use" permission would encourage people to not understand what they're giving their players the ability to do. Plus, many mechanics do not have a use permission, or have multiple permissions that make up the concept of usage.

As for craftbook.mech.[asterisk].use wildcard, wildcards are handled by the permissions plugin, not plugins that check for permissions. If you want wildcards within the middle of a permission node your permission plugin would need to support it.

me4502 avatar Apr 20 '20 07:04 me4502

I'm using LuckPerms which is quite powerful but wildcards with asterisk in the middle don't work. Maybe I'm doing something wrong...

ESP4Ever avatar Apr 20 '20 07:04 ESP4Ever

I wasn't saying your permission plugin would support it, I was saying that it's up to the permissions plugin to support it

me4502 avatar Apr 20 '20 09:04 me4502