mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Fix ProtocolSupport autoRegister
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
######1.9
|
######1.9
|
||||||
|
|
||||||
* Added second attempt login -> cracked login
|
* Added second attempt login -> cracked login
|
||||||
|
* Fix ProtocolSupport autoRegister
|
||||||
|
|
||||||
######1.8
|
######1.8
|
||||||
|
|
||||||
|
@ -67,10 +67,10 @@ public class ProtocolSupportListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (premiumUUID != null && plugin.getConfig().getBoolean("nameChangeCheck")) {
|
if (premiumUUID != null && plugin.getConfig().getBoolean("nameChangeCheck")) {
|
||||||
profile = plugin.getCore().getStorage().loadProfile(premiumUUID);
|
PlayerProfile uuidProfile = plugin.getCore().getStorage().loadProfile(premiumUUID);
|
||||||
if (profile != null) {
|
if (uuidProfile != null) {
|
||||||
plugin.getLogger().log(Level.FINER, "Player {0} changed it's username", premiumUUID);
|
plugin.getLogger().log(Level.FINER, "Player {0} changed it's username", premiumUUID);
|
||||||
startPremiumSession(username, loginStartEvent, false, profile);
|
startPremiumSession(username, loginStartEvent, false, uuidProfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user