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

This commit is contained in:
games647 committed 2016-09-21 09:16:19 +02:00
1 parent 62ffb1a904
commit 87ca00d75d
5 files changed
+37 -32

No files matched your search

@@ -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());