private static bool IsServerOfSettingsRunning(ServerSettings serverSettings) { KeyValuePair <string, SDaysTDieServer> keyValuePair = SDaysTDieServersByUserIds.FirstOrDefault(x => x.Value.ServerSettings.WorldGenSeed == serverSettings.WorldGenSeed); return(keyValuePair.Key != "" && keyValuePair.Key != null); }
private static bool IsServerCountOfUserExceeding(ServerSettings serverSettings) { return(SDaysTDieServersByUserIds.ContainsKey(serverSettings.UserUuid)); }