mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-30 03:51:24 +01:00
added null check to playerInGroup for PB.
This commit is contained in:
parent
5722a31346
commit
f603128338
@ -154,7 +154,11 @@ public class Permission_PermissionsBukkit extends Permission {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return perms.getGroup(group).getPlayers().contains(player);
|
||||
Group g = perms.getGroup(group);
|
||||
if (g == null) {
|
||||
return false;
|
||||
}
|
||||
return g.getPlayers().contains(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user