From d1760dad937d9ca9962a5afa744214a1fb002c06 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 2 Jul 2013 19:26:21 +1000 Subject: [PATCH] Custom outdated messages, tick! --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 4 ++-- proxy/src/main/resources/messages_en.properties | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index f76efc3e3..f5b99af75 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -202,10 +202,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection if ( handshake.getProcolVersion() > Vanilla.PROTOCOL_VERSION ) { - disconnect( "Outdated server!" ); + disconnect( bungee.getTranslation( "outdated_server" ) ); } else if ( handshake.getProcolVersion() < Vanilla.PROTOCOL_VERSION ) { - disconnect( "Outdated client!" ); + disconnect( bungee.getTranslation( "outdated_client" ) ); } if ( handshake.getUsername().length() > 16 ) diff --git a/proxy/src/main/resources/messages_en.properties b/proxy/src/main/resources/messages_en.properties index 09b63a782..955003586 100644 --- a/proxy/src/main/resources/messages_en.properties +++ b/proxy/src/main/resources/messages_en.properties @@ -9,6 +9,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! proxy_full: Server is full restart: [Proxy] Proxy restarting. server_kick: [Kicked]