Prevented PluginData elements causing player page to fail in some cases

This commit is contained in:
Rsl1122 2018-02-11 15:10:38 +02:00
parent 22bbf3afc0
commit 63b48bb2ee

View File

@ -97,7 +97,7 @@ public class HookHandler implements SubSystem {
if (container != null && !container.isEmpty()) {
containers.put(pluginData, container);
}
} catch (Exception e) {
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError e) {
String sourcePlugin = pluginData.getSourcePlugin();
Log.error("PluginData caused exception: " + sourcePlugin);
Log.toLog(this.getClass().getName() + " " + sourcePlugin, e);