Revert "Slightly preferable messages on UsageException thrown by piston"

This reverts commit e9adf0f30d.
Dieser Commit ist enthalten in:
dordsor21 2021-09-21 17:30:32 +01:00
Ursprung c805102819
Commit b8ec4be95c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -766,18 +766,13 @@ public final class PlatformCommandManager {
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", e.getComponent()));
} catch (UsageException e) {
ImmutableList<Command> cmd = e.getCommands();
if (e.getRichMessage() == TextComponent.empty() && !cmd.isEmpty()) {
if (!cmd.isEmpty()) {
actor.print(Caption.of(
"fawe.error.command.syntax",
HelpGenerator.create(e.getCommandParseResult()).getFullHelp()
));
} else {
actor.print(Caption.of(
"fawe.error.command.syntax",
HelpGenerator.create(e.getCommandParseResult()).getUsage()
));
actor.printError(e.getRichMessage());
}
actor.printError(e.getRichMessage());
} catch (CommandExecutionException e) {
handleUnknownException(actor, e.getCause());
} catch (CommandException e) {