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
|
//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
|
//with the offline uuid this makes it possible to set the skin then
|
||||||
PendingConnection connection = loginEvent.getConnection();
|
PendingConnection connection = loginEvent.getConnection();
|
||||||
String username = connection.getName();
|
String username = connection.getName().toLowerCase();
|
||||||
if (connection.isOnlineMode()) {
|
if (connection.isOnlineMode()) {
|
||||||
LoginSession session = plugin.getSession().get(connection);
|
LoginSession session = plugin.getSession().get(connection);
|
||||||
session.setUuid(connection.getUniqueId());
|
session.setUuid(connection.getUniqueId());
|
||||||
|
@ -31,7 +31,7 @@ public class AsyncPremiumCheck extends JoinManagement<ProxiedPlayer, CommandSend
|
|||||||
public void run() {
|
public void run() {
|
||||||
plugin.getSession().remove(connection);
|
plugin.getSession().remove(connection);
|
||||||
|
|
||||||
String username = connection.getName();
|
String username = connection.getName().toLowerCase();
|
||||||
try {
|
try {
|
||||||
super.onLogin(username, new BungeeLoginSource(connection));
|
super.onLogin(username, new BungeeLoginSource(connection));
|
||||||
} finally {
|
} finally {
|
||||||
|
Reference in New Issue
Block a user