#2378: Show supported servers in incorrect client kick messages

This makes the message match vanilla Minecraft servers
This commit is contained in:
Mystiflow 2018-03-07 02:29:43 +00:00 committed by md-5
parent 7653a5f0f8
commit 7ee0b6dccb
2 changed files with 5 additions and 5 deletions

View File

@ -142,7 +142,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
public void handle(LegacyHandshake legacyHandshake) throws Exception
{
this.legacy = true;
ch.close( bungee.getTranslation( "outdated_client" ) );
ch.close( bungee.getTranslation( "outdated_client", bungee.getGameVersion() ) );
}
@Override
@ -301,10 +301,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{
if ( handshake.getProtocolVersion() > bungee.getProtocolVersion() )
{
disconnect( bungee.getTranslation( "outdated_server" ) );
disconnect( bungee.getTranslation( "outdated_server", bungee.getGameVersion() ) );
} else
{
disconnect( bungee.getTranslation( "outdated_client" ) );
disconnect( bungee.getTranslation( "outdated_client", bungee.getGameVersion() ) );
}
return;
}

View File

@ -12,8 +12,8 @@ mojang_fail=Error occurred while contacting login servers, are they down?
no_permission=\u00a7cYou do not have permission to execute this command!
no_server=\u00a7cThe specified server does not exist.
no_server_permission=\u00a7cYou don't have permission to access this server.
outdated_client=Outdated Client!
outdated_server=Outdated Server!
outdated_client=Outdated client! Please use {0}
outdated_server=Outdated server! I'm still on {0}
proxy_full=Server is full!
restart=[Proxy] Proxy restarting.
server_kick=[Kicked]