[SwitchMode] Kick the player only if the player is unknown to us

This commit is contained in:
games647
2016-09-21 09:16:19 +02:00
parent 62ffb1a904
commit 87ca00d75d
5 changed files with 37 additions and 32 deletions
@@ -66,6 +66,8 @@ public class PlayerConnectionListener implements Listener {
plugin.getCore().getPendingLogins().remove(ip + username);
LoginSession session = plugin.getSession().get(connection);
session.setUuid(connection.getUniqueId());
PlayerProfile playerProfile = session.getProfile();
playerProfile.setUuid(connection.getUniqueId());