mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-31 21:37:58 +01:00
fix pbukkit getPrimaryGroup when the player has no groups.
This commit is contained in:
parent
264f769aad
commit
d47c0776b6
@ -192,7 +192,7 @@ public class Permission_PermissionsBukkit extends Permission {
|
||||
public String getPrimaryGroup(String world, String player) {
|
||||
if (perms.getPlayerInfo(player) == null)
|
||||
return null;
|
||||
else if (perms.getPlayerInfo(player).getGroups() != null ) {
|
||||
else if (perms.getPlayerInfo(player).getGroups() != null && !perms.getPlayerInfo(player).getGroups().isEmpty() ) {
|
||||
return perms.getPlayerInfo(player).getGroups().get(0).getName();
|
||||
}
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user