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 );