From 529268213b98506ae0d005b5125ebb50cd1939d2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 24 Dec 2010 17:25:07 +0000 Subject: [PATCH] Fix exception => throwable in catch while loading plugins By: Dinnerbone --- paper-api/.gitignore | 3 ++- paper-api/src/org/bukkit/plugin/java/JavaPluginLoader.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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); }