From 0cf657592d77296def5d5f01b5e5559af6750bdd Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Feb 2013 11:23:49 +1100 Subject: [PATCH] Take correct substring --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9cd9664d..d19c720d 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -64,7 +64,7 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer this.pendingConnection = pendingConnection; this.forgeLogin = forgeLogin; this.loginMessages = loginMessages; - name = handshake.username.substring( Math.min( handshake.username.length(), 16 ) ); + name = handshake.username.substring( 0, Math.min( handshake.username.length(), 16 ) ); displayName = name; Collection g = ProxyServer.getInstance().getConfigurationAdapter().getGroups( name );