[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
@@ -3,8 +3,6 @@ package com.github.games647.fastlogin.bukkit;
import com.github.games647.fastlogin.core.PlayerProfile;
import com.github.games647.fastlogin.core.shared.LoginSession;
import java.util.UUID;
import org.apache.commons.lang.ArrayUtils;
/**
@@ -17,7 +15,6 @@ public class BukkitLoginSession extends LoginSession {
private final String serverId;
private final byte[] verifyToken;
private UUID uuid;
private boolean verified;
private String encodedSkinData;
@@ -93,24 +90,6 @@ public class BukkitLoginSession extends LoginSession {
this.verified = verified;
}
/**
* Get the premium UUID of this player
*
* @return the premium UUID or null if not fetched
*/
public synchronized UUID getUuid() {
return uuid;
}
/**
* Set the online UUID if it's fetched
*
* @param uuid premium UUID
*/
public synchronized void setUuid(UUID uuid) {
this.uuid = uuid;
}
/**
* Get whether the player has a premium (paid account) account and valid session
*