Make disabling plugins the last thing we do.

This commit is contained in:
md_5 2013-02-21 17:05:31 +11:00
parent 0c5d76b860
commit 59a7e6f9c4

View File

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