Null support for getPrimaryGroup.

This commit is contained in:
Sleaker 2011-07-11 10:59:02 -07:00
parent 027a493fc7
commit 9a41f10e00
1 changed files with 277 additions and 274 deletions

View File

@ -355,6 +355,9 @@ public class Permission_PermissionsEx implements Permission {
@Override
public String getPrimaryGroup(String world, String playerName) {
if (PermissionsEx.getPermissionManager().getUser(playerName).getGroupsNames().length > 0)
return PermissionsEx.getPermissionManager().getUser(playerName).getGroupsNames()[0];
else
return null;
}
}