Skip to content
Permalink
Browse files

Provide a temporary workaround for CommandExceptions

  • Loading branch information
DarkArc committed Jan 11, 2020
1 parent beec307 commit 639bbefe171fc1a9fcb1005112a55712c315485a
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/com/sk89q/commandbook/PlatformCommandManager.java
@@ -200,6 +200,12 @@ public void handleCommand(CommandSender sender, String arguments) {
.build());
}
} catch (CommandExecutionException e) {
// FIXME: Put this in an exception converter.
if (e.getCause() instanceof com.sk89q.minecraft.util.commands.CommandException) {
actor.print(TextComponent.builder(e.getCause().getMessage()).color(TextColor.RED).build());
return;
}

handleUnknownException(actor, e.getCause());
} catch (CommandException e) {
actor.print(TextComponent.builder("")

0 comments on commit 639bbef

Please sign in to comment.
You can’t perform that action at this time.