From a8a9d75bcd8c18ee5018116d35cc82fbbf61b99b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 25 May 2012 15:56:33 -0500 Subject: [PATCH] Reverse disable order; Addresses BUKKIT-1389 By: Wesley Wolfe --- .../src/main/java/org/bukkit/plugin/SimplePluginManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 6a366ef9fc..e017ffdfb4 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -388,8 +388,9 @@ public final class SimplePluginManager implements PluginManager { } public void disablePlugins() { - for (Plugin plugin : getPlugins()) { - disablePlugin(plugin); + Plugin[] plugins = getPlugins(); + for (int i = plugins.length - 1; i >= 0; i--) { + disablePlugin(plugins[i]); } }