getPrimaryGroup(player) - not really primary. (bPerms)
atajsic opened this issue ยท 3 comments
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
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/
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.