diff --git a/src/net/milkbowl/vault/permission/plugins/Permission_bPermissions2.java b/src/net/milkbowl/vault/permission/plugins/Permission_bPermissions2.java index 662195b..540dbea 100644 --- a/src/net/milkbowl/vault/permission/plugins/Permission_bPermissions2.java +++ b/src/net/milkbowl/vault/permission/plugins/Permission_bPermissions2.java @@ -150,7 +150,7 @@ public class Permission_bPermissions2 extends Permission { @Override public String getPrimaryGroup(String world, String player) { String[] groups = getPlayerGroups(world, player); - return groups != null ? groups[0] : null; + return groups != null && groups.length > 0 ? groups[0] : null; } @Override