Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed inGroup always returning true for ops
Dieser Commit ist enthalten in:
Ursprung
2e1087a49a
Commit
cf69daff78
@ -91,11 +91,13 @@ public class DinnerPermsResolver implements PermissionsResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean inGroup(OfflinePlayer player, String group) {
|
public boolean inGroup(OfflinePlayer player, String group) {
|
||||||
Permissible perms = getPermissible(player);
|
final Permissible perms = getPermissible(player);
|
||||||
if (perms == null) {
|
if (perms == null) {
|
||||||
return false;
|
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) {
|
public String[] getGroups(OfflinePlayer player) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren