Close #963 - log remote ping errors to console, friendly message to clients.

This commit is contained in:
md_5
2014-04-19 19:48:43 +10:00
parent 6475385f87
commit 312a74c5f1
2 changed files with 3 additions and 1 deletions

View File

@@ -162,7 +162,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
if ( error != null )
{
result = new ServerPing();
result.setDescription( "Error pinging remote server: " + Util.exception( error ) );
result.setDescription( bungee.getTranslation( "ping_cannot_connect" ) );
bungee.getLogger().log( Level.WARNING, "Error pinging remote server", error );
}
result = bungee.getPluginManager().callEvent( new ProxyPingEvent( InitialHandler.this, result ) ).getResponse();