Dieser Commit ist enthalten in:
Ursprung
36bb4db515
Commit
32de0b912d
@ -369,7 +369,11 @@ public abstract class AbstractSWCommand<T> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean validate(T sender, Object value, MessageSender messageSender) {
|
public boolean validate(T sender, Object value, MessageSender messageSender) {
|
||||||
return inner.validate(sender, value, messageSender) ^ invert;
|
if (invert) {
|
||||||
|
return !inner.validate(sender, value, messageSender);
|
||||||
|
} else {
|
||||||
|
return inner.validate(sender, value, messageSender);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren