diff --git a/paper-api/.gitignore b/paper-api/.gitignore index 1590e71a07..863c54ba7c 100644 --- a/paper-api/.gitignore +++ b/paper-api/.gitignore @@ -2,4 +2,5 @@ /build /nbproject /build.xml -/manifest.mf \ No newline at end of file +/manifest.mf +/dist \ No newline at end of file diff --git a/paper-api/src/org/bukkit/plugin/java/JavaPluginLoader.java b/paper-api/src/org/bukkit/plugin/java/JavaPluginLoader.java index 085e96f758..bd6d0f86e0 100644 --- a/paper-api/src/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/paper-api/src/org/bukkit/plugin/java/JavaPluginLoader.java @@ -41,7 +41,7 @@ public final class JavaPluginLoader implements PluginLoader { Constructor constructor = plugin.getConstructor(PluginLoader.class, Server.class, PluginDescriptionFile.class, File.class, ClassLoader.class); result = constructor.newInstance(this, server, description, file, loader); - } catch (Exception ex) { + } catch (Throwable ex) { throw new InvalidPluginException(ex); }