Vault

Vault

7M Downloads

getPrimaryGroup(player) - not really primary. (bPerms)

atajsic opened this issue ยท 3 comments

commented

Long story short, if a user has groups

users:
  Tazzernator:
    permissions: []
    groups:
    - guest
    - knight

Vault's getPrimaryGroup(player) returns guest, as it is position 0.

Perhaps one could use the priority value, and compare the groups and return the group with the highest priority?

Thanks,
Andrew

commented

I second this.
The root to this issue is here if it helps: http://dev.bukkit.org/server-mods/mcdocs/tickets/76-group-detection-is-faulty/

commented

I'll check with codename if he's made an API for it, he didn't use to have priorities so the only thing to check was first position.

commented

Per codename, this will be fixed in the next version of bPermissions as he will pre-sort the group list by priority. No change in Vault will be needed for it to work properly.