Swallow Throwable since plugins are naughty and don't do the right thing -_-

This commit is contained in:
Andrew Steinborn
2020-07-29 03:58:04 -04:00
parent 65e1b7be87
commit c2db8d4ac1

View File

@@ -164,7 +164,8 @@ public class VelocityCommandManager implements CommandManager {
source.sendMessage(TextComponent.of(e.getMessage(), NamedTextColor.RED));
}
return false;
} catch (final Exception e) {
} catch (final Throwable e) {
// Ugly, ugly swallowing of everything Throwable, because plugins are naughty.
throw new RuntimeException("Unable to invoke command " + cmdLine + " for " + source, e);
}
}