mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:48:34 +00:00
fix: Deduplicate error messages (#1557)
Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1535
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user