mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-28 20:07:55 +01:00
Updated to use API methods.
This commit is contained in:
parent
48f5c275e1
commit
90277dd71e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user