geforkt von Mirrors/Paper
Fix exception => throwable in catch while loading plugins
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
0503a134ba
Commit
529268213b
3
paper-api/.gitignore
vendored
3
paper-api/.gitignore
vendored
@ -2,4 +2,5 @@
|
|||||||
/build
|
/build
|
||||||
/nbproject
|
/nbproject
|
||||||
/build.xml
|
/build.xml
|
||||||
/manifest.mf
|
/manifest.mf
|
||||||
|
/dist
|
@ -41,7 +41,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||||||
Constructor<? extends JavaPlugin> constructor = plugin.getConstructor(PluginLoader.class, Server.class, PluginDescriptionFile.class, File.class, ClassLoader.class);
|
Constructor<? extends JavaPlugin> constructor = plugin.getConstructor(PluginLoader.class, Server.class, PluginDescriptionFile.class, File.class, ClassLoader.class);
|
||||||
|
|
||||||
result = constructor.newInstance(this, server, description, file, loader);
|
result = constructor.newInstance(this, server, description, file, loader);
|
||||||
} catch (Exception ex) {
|
} catch (Throwable ex) {
|
||||||
throw new InvalidPluginException(ex);
|
throw new InvalidPluginException(ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren