Autorank

Autorank

380k Downloads

Autoranking / zPermissions

fffizzz opened this issue ยท 2 comments

commented

Hi there, hoping to get some assitance with an odd problem.

Currently in the midst of switching to zPermissions from bpermissions. Im having an odd problem that if I set someone to a specific group (ie donor2), ar will still re-rank them based on time.

My simpleconfig is as follows.
default: group1 after 1h
group1: group2 after 10h
group2: group3 after 24h
group3: group4 after 2d
group4: group5 after 3d
group5: group6 after 5d
group6: group7 after 7d
group7: group8 after 8d
group8: group9 after 9d
group9: group10 after 10d
group10: group11 after 12d
group11: group12 after 14d
group12: group13 after 17d
group13: group14 after 19d
group14: group15 after 23d
group15: group16 after 28d
group16: group17 after 32d
group17: group18 after 38d
group18: group19 after 46d
group19: group20 after 60d

When I was using bPerms, if the player was setgroup donor* it wouldnt change them, however in zPermissions it is.

To try and counter this behavior, i setup proper tracks. Whats odd is that its ADDING the group, rather than setting it, so the user gets ranked as group12, donor3 for example.

Any insight on what might be causing this?

thanks

commented

So instead of setting the group to group 12, it adds the group 12 to the players' groups?

commented

Affects the behavior of the Vault Permission getPlayerGroups() method.
If true, getPlayerGroups() will only return assigned groups. Otherwise,
it will return assigned groups and their inherited ancestor groups.
Only matters if native-vault-bridges is true.
vault-get-groups-uses-assigned-only: true

Setting this to true resolved the problem. This is inside zPerms.

And yes, it was adding because it saw all groups..