Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-13 22:50:06 +01:00
Slightly preferable messages on UsageException thrown by piston
Dieser Commit ist enthalten in:
Ursprung
9d26f030dc
Commit
e9adf0f30d
@ -766,13 +766,18 @@ public final class PlatformCommandManager {
|
||||
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", e.getComponent()));
|
||||
} catch (UsageException e) {
|
||||
ImmutableList<Command> cmd = e.getCommands();
|
||||
if (!cmd.isEmpty()) {
|
||||
if (e.getRichMessage() == TextComponent.empty() && !cmd.isEmpty()) {
|
||||
actor.print(Caption.of(
|
||||
"fawe.error.command.syntax",
|
||||
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) {
|
||||
handleUnknownException(actor, e.getCause());
|
||||
} catch (CommandException e) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren