From 59a7e6f9c48f6c303c792bd2577c82be22a6abad Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 21 Feb 2013 17:05:31 +1100 Subject: [PATCH] Make disabling plugins the last thing we do. --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index 9bcfeebc..7d50ff96 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -187,11 +187,6 @@ public class BungeeCord extends ProxyServer public void stop() { this.isRunning = false; - $().info( "Disabling plugins" ); - for ( Plugin plugin : pluginManager.getPlugins() ) - { - plugin.onDisable(); - } for ( ListenThread listener : listeners ) { @@ -219,6 +214,12 @@ public class BungeeCord extends ProxyServer reconnectHandler.save(); saveThread.cancel(); + $().info( "Disabling plugins" ); + for ( Plugin plugin : pluginManager.getPlugins() ) + { + plugin.onDisable(); + } + $().info( "Thank you and goodbye" ); System.exit( 0 ); }