Lowercase name inside pendingconnection for comparisons against the database

This commit is contained in:
games647
2017-05-10 17:06:25 +02:00
parent 47db2c7858
commit 059c3f346e
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class PlayerConnectionListener implements Listener {
//use the loginevent instead of the postlogin event in order to send the loginsuccess packet to the client
//with the offline uuid this makes it possible to set the skin then
PendingConnection connection = loginEvent.getConnection();
String username = connection.getName();
String username = connection.getName().toLowerCase();
if (connection.isOnlineMode()) {
LoginSession session = plugin.getSession().get(connection);
session.setUuid(connection.getUniqueId());

View File

@ -31,7 +31,7 @@ public class AsyncPremiumCheck extends JoinManagement<ProxiedPlayer, CommandSend
public void run() {
plugin.getSession().remove(connection);
String username = connection.getName();
String username = connection.getName().toLowerCase();
try {
super.onLogin(username, new BungeeLoginSource(connection));
} finally {