mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Revert "Slightly preferable messages on UsageException thrown by piston"
This reverts commit e9adf0f30d
.
This commit is contained in:
parent
c805102819
commit
b8ec4be95c
@ -766,18 +766,13 @@ public final class PlatformCommandManager {
|
|||||||
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", e.getComponent()));
|
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", e.getComponent()));
|
||||||
} catch (UsageException e) {
|
} catch (UsageException e) {
|
||||||
ImmutableList<Command> cmd = e.getCommands();
|
ImmutableList<Command> cmd = e.getCommands();
|
||||||
if (e.getRichMessage() == TextComponent.empty() && !cmd.isEmpty()) {
|
if (!cmd.isEmpty()) {
|
||||||
actor.print(Caption.of(
|
actor.print(Caption.of(
|
||||||
"fawe.error.command.syntax",
|
"fawe.error.command.syntax",
|
||||||
HelpGenerator.create(e.getCommandParseResult()).getFullHelp()
|
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) {
|
} catch (CommandExecutionException e) {
|
||||||
handleUnknownException(actor, e.getCause());
|
handleUnknownException(actor, e.getCause());
|
||||||
} catch (CommandException e) {
|
} catch (CommandException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user