add the server name to the translations

so you can do something like this in your messages.properties
if you want to

server_went_down=\u00a7cThe server you were previously on went down, you have been connected to {0}
This commit is contained in:
Outfluencer 2024-06-14 12:29:31 +02:00 committed by GitHub
parent fe9019082d
commit f00300f5ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ public class DownstreamBridge extends PacketHandler
{
server.setObsolete( true );
con.connectNow( def, ServerConnectEvent.Reason.SERVER_DOWN_REDIRECT );
con.sendMessage( bungee.getTranslation( "server_went_down" ) );
con.sendMessage( bungee.getTranslation( "server_went_down", def.getName() ) );
} else
{
con.disconnect( Util.exception( t ) );
@ -134,7 +134,7 @@ public class DownstreamBridge extends PacketHandler
{
server.setObsolete( true );
con.connectNow( def, ServerConnectEvent.Reason.SERVER_DOWN_REDIRECT );
con.sendMessage( bungee.getTranslation( "server_went_down" ) );
con.sendMessage( bungee.getTranslation( "server_went_down", def.getName() ) );
} else
{
con.disconnect( bungee.getTranslation( "lost_connection" ) );