Updated to use API methods.

This commit is contained in:
Jeffrey Wardian 2013-03-08 16:19:56 -08:00
parent 48f5c275e1
commit 90277dd71e
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class Permission_Privileges extends Permission {
public boolean playerInGroup(String world, String player, String group) {
OfflinePlayer p = Bukkit.getOfflinePlayer(player);
Group g = privs.getGroupManager().getGroup(p);
return g != null && g.getGroupTree().contains(group);
return g != null && g.isMemberOf(group);
}
@Override