Reverse disable order; Addresses BUKKIT-1389

By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
Bukkit/Spigot 2012-05-25 15:56:33 -05:00
parent f48a58f8c4
commit a8a9d75bcd

View File

@ -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]);
}
}