mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-09-29 06:07:26 +02:00
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:
parent
fe9019082d
commit
f00300f5ef
@ -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" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user