mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Take correct substring
This commit is contained in:
parent
cb0c010029
commit
0cf657592d
@ -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<String> g = ProxyServer.getInstance().getConfigurationAdapter().getGroups( name );
|
||||
|
Loading…
Reference in New Issue
Block a user