#2378: Show supported servers in incorrect client kick messages
This makes the message match vanilla Minecraft servers
This commit is contained in:
parent
7653a5f0f8
commit
7ee0b6dccb
@ -142,7 +142,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
public void handle(LegacyHandshake legacyHandshake) throws Exception
|
public void handle(LegacyHandshake legacyHandshake) throws Exception
|
||||||
{
|
{
|
||||||
this.legacy = true;
|
this.legacy = true;
|
||||||
ch.close( bungee.getTranslation( "outdated_client" ) );
|
ch.close( bungee.getTranslation( "outdated_client", bungee.getGameVersion() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -301,10 +301,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
{
|
{
|
||||||
if ( handshake.getProtocolVersion() > bungee.getProtocolVersion() )
|
if ( handshake.getProtocolVersion() > bungee.getProtocolVersion() )
|
||||||
{
|
{
|
||||||
disconnect( bungee.getTranslation( "outdated_server" ) );
|
disconnect( bungee.getTranslation( "outdated_server", bungee.getGameVersion() ) );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
disconnect( bungee.getTranslation( "outdated_client" ) );
|
disconnect( bungee.getTranslation( "outdated_client", bungee.getGameVersion() ) );
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -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_permission=\u00a7cYou do not have permission to execute this command!
|
||||||
no_server=\u00a7cThe specified server does not exist.
|
no_server=\u00a7cThe specified server does not exist.
|
||||||
no_server_permission=\u00a7cYou don't have permission to access this server.
|
no_server_permission=\u00a7cYou don't have permission to access this server.
|
||||||
outdated_client=Outdated Client!
|
outdated_client=Outdated client! Please use {0}
|
||||||
outdated_server=Outdated Server!
|
outdated_server=Outdated server! I'm still on {0}
|
||||||
proxy_full=Server is full!
|
proxy_full=Server is full!
|
||||||
restart=[Proxy] Proxy restarting.
|
restart=[Proxy] Proxy restarting.
|
||||||
server_kick=[Kicked]
|
server_kick=[Kicked]
|
||||||
|
Loading…
Reference in New Issue
Block a user