Updated to use API methods.

This commit is contained in:
Jeffrey Wardian 2013-03-08 16:19:56 -08:00
parent 48f5c275e1
commit 90277dd71e

View File

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