Fix ProtocolSupport autoRegister

This commit is contained in:
games647
2016-08-30 12:27:02 +02:00
parent d20db79f46
commit ebe768f7a2
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
######1.9
* Added second attempt login -> cracked login
* Fix ProtocolSupport autoRegister
######1.8

View File

@ -67,10 +67,10 @@ public class ProtocolSupportListener implements Listener {
}
if (premiumUUID != null && plugin.getConfig().getBoolean("nameChangeCheck")) {
profile = plugin.getCore().getStorage().loadProfile(premiumUUID);
if (profile != null) {
PlayerProfile uuidProfile = plugin.getCore().getStorage().loadProfile(premiumUUID);
if (uuidProfile != null) {
plugin.getLogger().log(Level.FINER, "Player {0} changed it's username", premiumUUID);
startPremiumSession(username, loginStartEvent, false, profile);
startPremiumSession(username, loginStartEvent, false, uuidProfile);
return;
}
}