LuckPerms

LuckPerms

41.4k Downloads

Weight/Priorities for groups

Slind14 opened this issue · 1 comments

commented

My use case is a pretty complex one. We have +30 player groups +10 staff groups +30 servers where most require specific permissions.

Therefor I'm having difficulty migrating from zPerms, as I can't define which group should overwrite another. Inheritance is already in use for the player and staff groups, but not working out for mixed groups.

E.g. a user can be part of multiple staff groups:
Group: player07
Inherit: player06
Inherit. player05
..

Group: Sr. Mod
Inherit: Mod
Inherit: Jr.Mod
Inherit: default

Group: specific
negates permissions based surroundings (user state (e.g. spectating, pve), server, world, region..)

player07 and Sr. Mod can coexist, they usually don't need to negate any permissions of the other group and inheritance tree. But the specific groups need to be able to overwrite all those. Ofc. I could create a group like specific_Sr.Mod_player07 which is the specific group inheriting Sr.Mod and player07, but that would require one group for every possible/appearing combination, which makes it impossible to manage as a human.

Therefor it would be great to have those group weights stored in database, on the actual group entity. Kinda like the prefix/suffix priorities.

commented

Thank you :)