2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Mon, 29 Feb 2016 19:45:21 -0600
|
|
|
|
Subject: [PATCH] Automatically disable plugins that fail to load
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
2022-06-07 19:20:30 +02:00
|
|
|
index 333c47a1f7e9d7ddf91aad5ec15163427f7b8039..5eb24f38f158d43fb42836b83c108f808c89512e 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
|
|
|
+++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
|
|
|
|
@@ -335,6 +335,10 @@ public final class JavaPluginLoader implements PluginLoader {
|
|
|
|
jPlugin.setEnabled(true);
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
server.getLogger().log(Level.SEVERE, "Error occurred while enabling " + plugin.getDescription().getFullName() + " (Is it up to date?)", ex);
|
|
|
|
+ // Paper start - Disable plugins that fail to load
|
2021-10-07 06:00:32 +02:00
|
|
|
+ this.server.getPluginManager().disablePlugin(jPlugin);
|
2021-06-11 14:02:28 +02:00
|
|
|
+ return;
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
|
|
|
|
// Perhaps abort here, rather than continue going, but as it stands,
|