From ffdb917f2c5a1196bf6e436ccf53a5d8e52fc98a Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 9 Sep 2013 14:58:56 +1000 Subject: [PATCH] Use translation - closes #578 --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- proxy/src/main/resources/messages_en.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index a1105a79..16569dba 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -178,7 +178,7 @@ public final class UserConnection implements ProxiedPlayer if ( getServer() != null && Objects.equals( getServer().getInfo(), target ) ) { - sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" ); + sendMessage( bungee.getTranslation( "already_connected" ) ); return; } if ( pendingConnects.contains( target ) ) diff --git a/proxy/src/main/resources/messages_en.properties b/proxy/src/main/resources/messages_en.properties index 3891dfc9..5bc25eee 100644 --- a/proxy/src/main/resources/messages_en.properties +++ b/proxy/src/main/resources/messages_en.properties @@ -1,5 +1,5 @@ alert: \u00a78[\u00a74Alert\u00a78]\u00a7r -already_connected: You are already connected to the server +already_connected: \u00a7cYou are already connected to this server already_connecting: \u00a7cAlready connecting to this server! connect_kick: \u00a7cKicked whilst connecting to current_server: \u00a76You are currently connected to