mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Fix sponge perms too.
Untested tho cuz 1.13 lol
This commit is contained in:
parent
1e7c074217
commit
a3ca670a32
@ -44,11 +44,11 @@ public boolean testPermission(CommandSource source) {
|
||||
.map(PermissionCondition::getPermissions)
|
||||
.orElseGet(Collections::emptySet);
|
||||
for (String perm : permissions) {
|
||||
if (!source.hasPermission(perm)) {
|
||||
return false;
|
||||
if (source.hasPermission(perm)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user