public static string GetServerData(string key) { SteamDSConfig.LoadServerCfg(); if (SteamDSConfig.serverConfig != null && SteamDSConfig.serverConfig.Count > 0) { string key2 = key.ToLower(); if (SteamDSConfig.serverConfig.ContainsKey(key2)) { return(SteamDSConfig.serverConfig[key2]); } } Debug.LogError("No ServerConfig key (" + key + ") found. Check your configuration file."); return(string.Empty); }
public static string GetServerData(string key) { SteamDSConfig.LoadServerCfg(); if (SteamDSConfig.serverConfig.Length > 0) { foreach (string text in SteamDSConfig.serverConfig) { if (!text.Contains(" { string text2 = text.Replace(key, string.Empty); return text2.Trim(); } } } Debug.LogError("No ServerConfig key (" + key + ") found. Check your configuration file."); return string.Empty; }