From 9d26f030dcaa0290442edf5ec63c8bd485515241 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 20 Sep 2021 23:18:38 +0100 Subject: [PATCH] Fix some command errors being hidden by a usage message --- .../worldedit/extension/platform/PlatformCommandManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index e85d1136d..63e51617b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -780,11 +780,13 @@ public final class PlatformCommandManager { actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", ((FaweException) e.getCause()).getComponent())); } else { Component msg = e.getRichMessage(); - if (msg != TextComponent.empty()) { + if (msg == TextComponent.empty()) { List argList = parseArgs(event.getArguments()) .map(Substring::getSubstring) .collect(Collectors.toList()); printUsage(actor, argList); + } else { + actor.printError(msg); } } } catch (Throwable t) {