Fix ProtocolSupport autoRegister
This commit is contained in:
1 parent
d20db79f46
commit
ebe768f7a2
2 files changed
+4
-3
No files matched your search
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user