Dieser Commit ist enthalten in:
Ursprung
6f7846956e
Commit
7474478489
@ -86,7 +86,8 @@ public abstract class AbstractSWCommand<T> {
|
|||||||
try {
|
try {
|
||||||
if (commandList.stream().noneMatch(s -> s.invoke(errors::add, sender, alias, args))) {
|
if (commandList.stream().noneMatch(s -> s.invoke(errors::add, sender, alias, args))) {
|
||||||
errors.forEach(Runnable::run);
|
errors.forEach(Runnable::run);
|
||||||
} else if (helpCommandList.stream().noneMatch(s -> s.invoke(errors::add, sender, alias, args))) {
|
} else return;
|
||||||
|
if (errors.isEmpty() && helpCommandList.stream().noneMatch(s -> s.invoke(errors::add, sender, alias, args))) {
|
||||||
errors.forEach(Runnable::run);
|
errors.forEach(Runnable::run);
|
||||||
}
|
}
|
||||||
} catch (CommandFrameworkException e) {
|
} catch (CommandFrameworkException e) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren