mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed inGroup always returning true for ops
This commit is contained in:
parent
2e1087a49a
commit
cf69daff78
@ -91,11 +91,13 @@ public class DinnerPermsResolver implements PermissionsResolver {
|
||||
}
|
||||
|
||||
public boolean inGroup(OfflinePlayer player, String group) {
|
||||
Permissible perms = getPermissible(player);
|
||||
final Permissible perms = getPermissible(player);
|
||||
if (perms == null) {
|
||||
return false;
|
||||
}
|
||||
return perms.hasPermission(GROUP_PREFIX + group);
|
||||
|
||||
final String perm = GROUP_PREFIX + group;
|
||||
return perms.isPermissionSet(perm) && perms.hasPermission(perm);
|
||||
}
|
||||
|
||||
public String[] getGroups(OfflinePlayer player) {
|
||||
|
Loading…
Reference in New Issue
Block a user