mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
fix: Deduplicate error messages (#1557)
Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1535
This commit is contained in:
parent
c461674402
commit
e8f72d6521
@ -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(
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user