public static void SetupConfig() { try { if (File.Exists(CConfigPath)) { CConfig = CConfigFile.Read(CConfigPath); // Add all the missing config properties in the json file } CConfig.Write(CConfigPath); } catch (Exception ex) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error in config file"); Console.ForegroundColor = ConsoleColor.Gray; Log.Error("Config Exception"); Log.Error(ex.ToString()); } }
public PluginTemplate(Main game) : base(game) { CConfig = new CConfigFile(); Order = 0; }