Merge pull request #19 from mikroskeem/master

Fix unregisterConnection using non-lowercase username
This commit is contained in:
Andrew Steinborn 2018-08-06 18:35:30 -04:00 committed by GitHub
commit 219d03c050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ public class VelocityServer implements ProxyServer {
}
public void unregisterConnection(ConnectedPlayer connection) {
connectionsByName.remove(connection.getUsername(), connection);
connectionsByName.remove(connection.getUsername().toLowerCase(Locale.US), connection);
connectionsByUuid.remove(connection.getUniqueId(), connection);
}