fix: Deduplicate error messages (#1557)

Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1535
This commit is contained in:
Alex 2022-01-24 12:52:33 +01:00 committed by GitHub
parent c461674402
commit e8f72d6521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

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

View File

@ -769,13 +769,6 @@ public final class PlatformCommandManager {
} catch (FaweException e) { } catch (FaweException e) {
actor.print(Caption.of("fawe.cancel.reason", e.getComponent())); actor.print(Caption.of("fawe.cancel.reason", e.getComponent()));
} catch (UsageException e) { } 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()); actor.printError(e.getRichMessage());
} catch (CommandExecutionException e) { } catch (CommandExecutionException e) {
handleUnknownException(actor, e.getCause()); handleUnknownException(actor, e.getCause());