fix: Deduplicate error messages (#1557)

Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1535
Dieser Commit ist enthalten in:
Alex 2022-01-24 12:52:33 +01:00 committet von GitHub
Ursprung c461674402
Commit e8f72d6521
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 0 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -114,8 +114,6 @@ public class ChunkCommands {
TextComponent.of(actor.getName())
)
);
actor.print(new ChunkListPaginationBox(region).create(page));
actor.print(Caption.of("worldedit.listchunks.listfor", TextComponent.of(actor.getName())));
}
@Command(

Datei anzeigen

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