Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #198 from SpigotMC/master
Browse files Browse the repository at this point in the history
SpigotMC#2378: Show supported servers in incorrect client kick messages
  • Loading branch information
sleiss authored Mar 8, 2018
2 parents 068f8c9 + 7ee0b6d commit b5f17e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void handle(PluginMessage pluginMessage) throws Exception
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
Expand Down Expand Up @@ -301,10 +301,10 @@ public void handle(Handshake handshake) throws Exception
{
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;
}
Expand Down
4 changes: 2 additions & 2 deletions proxy/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b5f17e7

Please sign in to comment.