Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Check both superperms and PEX directly to support older versions of PEX with inGroup
Older versions didn't set the group nodes correctly, so they were only accessible through getEffectivePermissions()
Dieser Commit ist enthalten in:
Ursprung
a65b574d9d
Commit
4daef4aff2
@ -22,7 +22,6 @@ package com.sk89q.wepif;
|
||||
import com.sk89q.util.yaml.YAMLProcessor;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.permissions.Permissible;
|
||||
import ru.tehkode.permissions.PermissionManager;
|
||||
import ru.tehkode.permissions.PermissionUser;
|
||||
@ -67,11 +66,7 @@ public class PermissionsExResolver extends DinnerPermsResolver {
|
||||
}
|
||||
|
||||
public boolean inGroup(OfflinePlayer player, String group) {
|
||||
if (getPermissible(player) == null) {
|
||||
return manager.getUser(player.getName()).inGroup(group);
|
||||
} else {
|
||||
return hasPermission(player, GROUP_PREFIX + group);
|
||||
}
|
||||
return super.inGroup(player, group) || manager.getUser(player.getName()).inGroup(group);
|
||||
}
|
||||
|
||||
public String[] getGroups(OfflinePlayer player) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren