mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 11:15:47 +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.pendingConnection = pendingConnection;
|
||||||
this.forgeLogin = forgeLogin;
|
this.forgeLogin = forgeLogin;
|
||||||
this.loginMessages = loginMessages;
|
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;
|
displayName = name;
|
||||||
|
|
||||||
Collection<String> g = ProxyServer.getInstance().getConfigurationAdapter().getGroups( name );
|
Collection<String> g = ProxyServer.getInstance().getConfigurationAdapter().getGroups( name );
|
||||||
|
Loading…
Reference in New Issue
Block a user