mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
Fix exception => throwable in catch while loading plugins
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
result = constructor.newInstance(this, server, description, file, loader);
|
||||
} catch (Exception ex) {
|
||||
} catch (Throwable ex) {
|
||||
throw new InvalidPluginException(ex);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user