ammar2 missed a spot

This commit is contained in:
md_5 2013-08-14 22:14:32 +10:00
parent da0281508e
commit 61a93a54a9

View File

@ -259,7 +259,10 @@ public class BungeeCord extends ProxyServer
@Override @Override
public void run() public void run()
{ {
getReconnectHandler().save(); if ( getReconnectHandler() != null )
{
getReconnectHandler().save();
}
} }
}, 0, TimeUnit.MINUTES.toMillis( 5 ) ); }, 0, TimeUnit.MINUTES.toMillis( 5 ) );
metricsThread.scheduleAtFixedRate( new Metrics(), 0, TimeUnit.MINUTES.toMillis( Metrics.PING_INTERVAL ) ); metricsThread.scheduleAtFixedRate( new Metrics(), 0, TimeUnit.MINUTES.toMillis( Metrics.PING_INTERVAL ) );