Make disabling plugins the last thing we do.
This commit is contained in:
parent
0c5d76b860
commit
59a7e6f9c4
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user