From 7faefde51b67e7d3e0256b41ec7a0482ffbd5894 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 5 Jan 2014 11:27:19 +1100 Subject: [PATCH] Add name_too_long translation --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 2 +- proxy/src/main/resources/messages.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 4209d7ca..ff288c5d 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 @@ -238,7 +238,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection if ( getName().length() > 16 ) { - disconnect( "Cannot have username longer than 16 characters" ); + disconnect( bungee.getTranslation( "name_too_long" ) ); return; } diff --git a/proxy/src/main/resources/messages.properties b/proxy/src/main/resources/messages.properties index ca7e615f..64053986 100644 --- a/proxy/src/main/resources/messages.properties +++ b/proxy/src/main/resources/messages.properties @@ -19,3 +19,4 @@ server_kick=[Kicked] server_list=\u00a76You may connect to the following servers at this time: server_went_down=\u00a7cThe server you were previously on went down, you have been connected to the lobby total_players=Total players online: {0} +name_too_long=Cannot have username longer than 16 characters