From ffd621717023fbda7f38f812beeeaf22517b47bd Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 26 Aug 2018 14:40:07 -0400 Subject: [PATCH] Broaden a catch clause so Java Errors while loading plugins don't halt the proxy. --- .../com/velocitypowered/proxy/plugin/VelocityPluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/plugin/VelocityPluginManager.java b/proxy/src/main/java/com/velocitypowered/proxy/plugin/VelocityPluginManager.java index 074f8940b..f4625a900 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/plugin/VelocityPluginManager.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/plugin/VelocityPluginManager.java @@ -76,7 +76,7 @@ public class VelocityPluginManager implements PluginManager { try { pluginObject = loader.createPlugin(plugin); - } catch (Exception e) { + } catch (Throwable e) { logger.error("Can't create plugin {}", plugin.getId(), e); continue; }