You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMI has an automated ranking system based on statistics (I requested it years ago) and I'm only about to set it up!
I'm moving from AutoRank to CMI as I'm moving from 1.12.2 to 1.17/1.18 and Autorank is very dated/didn't work as I wanted.
I'm having an issue trying to solve a logic problem with how to set the default starting "CMI Rank" for Donators/Staff that inherit all previous groups to them (Its all linear).
CMI has this permission cmi.rank.rankname that works perfectly for this, and this works for all my normal users that are in the ranking LP groups default cadet sailor carpenter gunner boatswain firstmate quartermaster each later group inherits the last. but I have 3 donator Groups above these that all inherit each-other, Lieutenant (Inherits from Quartermaster), Commander, captain
As this is a linear inheritance if you are both Sailor and Lieutenant this CMI perm will set you to the last CMI rank as Quartermaster its inherited, where what I want it to do is ignore the donator ranks all together and use their Sailor rank to set them to Sailor in CMI using cmi.rank.sailor.
All players have 2 LP groups, 1 of the 8 groups they can "rank up" to, and then if they a temporary donator/staff as well. For example a user could be Sailor and Lieutenant. When their Lieutenant runs out they would still have their permanent role Sailor.
So a user may have both Sailor and Lieutenant, or a user could just be Sailor, or a user could be Boatswain and Lieutenant, Ill forget about staff for now.
Currently if a user is Deckhand -> Quartermaster, the permission cmi.rank.rankname works flawlessly, the issue is when a user is a donator or staff role because they inherit all ranks from their Donator/Staff role aswell as them having a rank group.
If I deny the permissions cmi.rank.rankname from the Lieutenant donator role, then the CMI ranking sees them as a deckhand, even if they are a Sailor and Lieutenant because of the Lieutenant group weight denying these perms.
So I experimented by creating a set of 7 additional LuckPerms groups each with a higher weight than Lieutenant with the theory that the Lieutenant would inherit the ranks, deny them, and then the inherited groups in the inherited groups would have a higher weight and override for the other group that they inherit.
For example if they were sailor & Lieutenant, Lieutenant inherits Quartermaster but denys all permissions for this cmi.rank.rankname for all ranks, then their sailor group inherits cmi_sailor which sets the weight higher than Quartermaster in theory overwriting the Lieutenant deny just for this other group, which seems to work in-game with /lp user Username info showing the correct meta weight! But the permissions were still denied! Im assuming because of how permission calculation works https://luckperms.net/wiki/Advanced-Setup
Diagram of that setup (same outcome).
Can you think of a way to solve this permissions issue to allow Donators/Staff to use the ranking system and setting their default starting role to one of the ranks they also are parent to?
The Donator & staff ranks need to inherit all permissions from the existing groups.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
CMI has an automated ranking system based on statistics (I requested it years ago) and I'm only about to set it up!
I'm moving from AutoRank to CMI as I'm moving from 1.12.2 to 1.17/1.18 and Autorank is very dated/didn't work as I wanted.
I'm having an issue trying to solve a logic problem with how to set the default starting "CMI Rank" for Donators/Staff that inherit all previous groups to them (Its all linear).
CMI has this permission
cmi.rank.rankname
that works perfectly for this, and this works for all my normal users that are in the ranking LP groupsdefault cadet sailor carpenter gunner boatswain firstmate quartermaster
each later group inherits the last. but I have 3 donator Groups above these that all inherit each-other,Lieutenant (Inherits from Quartermaster), Commander, captain
As this is a linear inheritance if you are both Sailor and Lieutenant this CMI perm will set you to the last CMI rank as Quartermaster its inherited, where what I want it to do is ignore the donator ranks all together and use their Sailor rank to set them to Sailor in CMI using
cmi.rank.sailor
.All players have 2 LP groups, 1 of the 8 groups they can "rank up" to, and then if they a temporary donator/staff as well. For example a user could be Sailor and Lieutenant. When their Lieutenant runs out they would still have their permanent role Sailor.
I have a nice easy guide on my website to show this too https://piratemc.com/guides/ranks/
Here is a diagram to visualize my structure.
So a user may have both Sailor and Lieutenant, or a user could just be Sailor, or a user could be Boatswain and Lieutenant, Ill forget about staff for now.
Currently if a user is Deckhand -> Quartermaster, the permission
cmi.rank.rankname
works flawlessly, the issue is when a user is a donator or staff role because they inherit all ranks from their Donator/Staff role aswell as them having a rank group.If I deny the permissions
cmi.rank.rankname
from the Lieutenant donator role, then the CMI ranking sees them as a deckhand, even if they are a Sailor and Lieutenant because of the Lieutenant group weight denying these perms.So I experimented by creating a set of 7 additional LuckPerms groups each with a higher weight than Lieutenant with the theory that the Lieutenant would inherit the ranks, deny them, and then the inherited groups in the inherited groups would have a higher weight and override for the other group that they inherit.
For example if they were sailor & Lieutenant, Lieutenant inherits Quartermaster but denys all permissions for this
cmi.rank.rankname
for all ranks, then their sailor group inherits cmi_sailor which sets the weight higher than Quartermaster in theory overwriting the Lieutenant deny just for this other group, which seems to work in-game with/lp user Username info
showing the correct meta weight! But the permissions were still denied! Im assuming because of how permission calculation works https://luckperms.net/wiki/Advanced-SetupDiagram of that setup (same outcome).
Can you think of a way to solve this permissions issue to allow Donators/Staff to use the ranking system and setting their default starting role to one of the ranks they also are parent to?
The Donator & staff ranks need to inherit all permissions from the existing groups.
Beta Was this translation helpful? Give feedback.
All reactions