Fix sponge perms too.

Untested tho cuz 1.13 lol
This commit is contained in:
wizjany 2019-06-01 09:48:45 -04:00
parent 1e7c074217
commit a3ca670a32

View File

@ -44,12 +44,12 @@ public abstract class CommandAdapter implements CommandCallable {
.map(PermissionCondition::getPermissions)
.orElseGet(Collections::emptySet);
for (String perm : permissions) {
if (!source.hasPermission(perm)) {
return false;
}
}
if (source.hasPermission(perm)) {
return true;
}
}
return false;
}
@Override
public Optional<Text> getShortDescription(CommandSource source) {