From 3c1a5aabfdbb91891eeaf98dd7bc1fa662772d53 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 11 Jun 2013 10:29:19 +1000 Subject: [PATCH] Add translation + fix spelling for mojang servers down --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 2 +- proxy/src/main/resources/messages_en.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 e888c9b1f..a2d005324 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 @@ -209,7 +209,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection @Override public void onThrowable(Throwable t) { - disconnect( "Error occured while contacting login servers, are they down?" ); + disconnect( bungee.getTranslation( "mojang_fail" ) ); bungee.getLogger().log( Level.SEVERE, "Error authenticating " + getName() + " with minecraft.net", t ); } } ); diff --git a/proxy/src/main/resources/messages_en.properties b/proxy/src/main/resources/messages_en.properties index 277392ca4..09b63a782 100644 --- a/proxy/src/main/resources/messages_en.properties +++ b/proxy/src/main/resources/messages_en.properties @@ -5,6 +5,7 @@ current_server: \u00a76You are currently connected to fallback_kick: \u00a7cCould not connect to default server, please try again later: fallback_lobby: \u00a7cCould not connect to target server, you have been moved to the lobby server lost_connection: [Proxy] Lost connection to server. +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