diff options
Diffstat (limited to 'patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch')
-rw-r--r-- | patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch b/patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch index 55aeb559ba..fcf406e1d2 100644 --- a/patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch +++ b/patches/api/0016-Automatically-disable-plugins-that-fail-to-load.patch @@ -5,7 +5,7 @@ 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 -index cf2f517765d8f2a23cc4a17d9ee2dcd81f841b1b..2e306c7b984a02e12a74fac14589bf29ab6488bf 100644 +index cf2f517765d8f2a23cc4a17d9ee2dcd81f841b1b..a3bc4155536f612ee2ae38ec7f16b974bdd24ab2 100644 --- 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 { @@ -13,7 +13,7 @@ index cf2f517765d8f2a23cc4a17d9ee2dcd81f841b1b..2e306c7b984a02e12a74fac14589bf29 } 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 -+ disablePlugin(jPlugin); ++ this.server.getPluginManager().disablePlugin(jPlugin); + return; + // Paper end } |