Allow customisation of kicking during initial server connection. In particular allow removal of server name by modification of messages.properties.

This commit is contained in:
Melair 2014-07-28 22:10:03 +01:00 committed by md_5
parent d1d4cc7bbf
commit 089a8dd311
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ public class ServerConnector extends PacketHandler
throw CancelSendSignal.INSTANCE; throw CancelSendSignal.INSTANCE;
} }
String message = bungee.getTranslation( "connect_kick" ) + target.getName() + ": " + event.getKickReason(); String message = bungee.getTranslation( "connect_kick", target.getName() ) + event.getKickReason();
if ( user.isDimensionChange() ) if ( user.isDimensionChange() )
{ {
user.disconnect( message ); user.disconnect( message );

View File

@ -2,7 +2,7 @@ alert=\u00a78[\u00a74Alert\u00a78]\u00a7r
already_connected=\u00a7cYou are already connected to this server already_connected=\u00a7cYou are already connected to this server
already_connecting=\u00a7cAlready connecting to this server! already_connecting=\u00a7cAlready connecting to this server!
command_list=\u00a7a[{0}] \u00a7e({1}): \u00a7r{2} command_list=\u00a7a[{0}] \u00a7e({1}): \u00a7r{2}
connect_kick=\u00a7cKicked whilst connecting to connect_kick=\u00a7cKicked whilst connecting to {0}:
current_server=\u00a76You are currently connected to current_server=\u00a76You are currently connected to
fallback_kick=\u00a7cCould not connect to default or fallback server, please try again later: fallback_kick=\u00a7cCould not connect to default or fallback server, please try again later:
fallback_lobby=\u00a7cCould not connect to target server, you have been moved to the fallback server fallback_lobby=\u00a7cCould not connect to target server, you have been moved to the fallback server