Fix sponge perms too.

Untested tho cuz 1.13 lol
Dieser Commit ist enthalten in:
wizjany 2019-06-01 09:48:45 -04:00
Ursprung 1e7c074217
Commit a3ca670a32

Datei anzeigen

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