forked from TuxCoding/FastLogin
Lowercase name inside pendingconnection for comparisons against the database
This commit is contained in:
@ -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());
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user