added null check to playerInGroup for PB.

This commit is contained in:
Sleaker 2012-01-14 12:01:51 -08:00
parent 5722a31346
commit f603128338

View File

@ -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