mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-23 19:16:31 +01:00
fix ArrayOutOfBounds for bPerms2
This commit is contained in:
parent
5e4afbaa69
commit
90bf4d8d3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user