mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix some command errors being hidden by a usage message
This commit is contained in:
parent
040edc8fd0
commit
9d26f030dc
@ -780,11 +780,13 @@ public final class PlatformCommandManager {
|
|||||||
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", ((FaweException) e.getCause()).getComponent()));
|
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", ((FaweException) e.getCause()).getComponent()));
|
||||||
} else {
|
} else {
|
||||||
Component msg = e.getRichMessage();
|
Component msg = e.getRichMessage();
|
||||||
if (msg != TextComponent.empty()) {
|
if (msg == TextComponent.empty()) {
|
||||||
List<String> argList = parseArgs(event.getArguments())
|
List<String> argList = parseArgs(event.getArguments())
|
||||||
.map(Substring::getSubstring)
|
.map(Substring::getSubstring)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
printUsage(actor, argList);
|
printUsage(actor, argList);
|
||||||
|
} else {
|
||||||
|
actor.printError(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user