t3hk0d3/PermissionsEx — Issue #149: Getting a player's top-level group prefix
Author: ikillforeyou
Created: 2011-12-14 00:59:37+00:00
State: open

I'd like to be able to get a player's group prefix, the default one getUser(u).getPrefix() would get if a player didn't have a player-specific prefix. I'll give an example:

Player p belongs to two groups, (default) prefix: &5, and (admin, inherits default), prefix: &a[Admin], But they also have a user-specific prefix, /pex user (p) prefix &d[Owner]. If I call a getPrefix() on the player, it will return &d[Owner]. Is there any way to get the top-level group? (In this case &a[Admin]).

Sorry if it's confusing, I've been looking through somewhat lacking API documents for the past hour.