serverID.equals(entry.serverID) ? entry.uuid : null;
}
@Override
public final synchronized boolean joinServer(String username, String accessToken, String serverID) throws IOException {
Entry entry = getEntry(username);
<BUG>if (entry == null || !username.equals(entry.username) ||
!accessToken.equals(entry.accessToken) || !updateServerID(entry.uuid, serverID)) {
return false; // Account doesn't exist or invalid access token</BUG>
}
entry.serverID = serverID;

serverID.equals(entry.serverID) ? entry.uuid : null;
}
@Override
public final synchronized boolean joinServer(String username, String accessToken, String serverID) throws IOException {
Entry entry = getEntry(username);
if (entry == null || !username.equals(entry.username) || !accessToken.equals(entry.accessToken) ||
!updateServerID(entry.uuid, serverID)) {
return false; // Account doesn't exist or invalid access token
}
entry.serverID = serverID;
