private bool CheckIncompatibility() { var list = PluginUtils.GetPluginInfosOf(this.IncompatibleMods); if (list.Count > 0) { string text = string.Join(", ", list.Where(kvp => kvp.Value.IsEnabled) .Select(kvp => string.Format("{0} ({1})", kvp.Value.GetInstances <IUserMod>()[0].Name, kvp.Value.PublishedFileID.ToString())) .OrderBy(s => s) .ToArray() ); if (!string.IsNullOrEmpty(text)) { this.Log.Warning("You've got some known incompatible mods installed and enabled! It's possible that this mod doesn't work as expected.\nThe following incompatible mods are enabled: {0}.", text); } return(true); } return(false); }