mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-29 12:28:35 +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) {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user