public Jail(Main game) : base(game) { Order = 3; JPConfig = new JPConfigFile(); Players = new Player[256]; }
public static void SetupConfig() { try { if (File.Exists(JPConfigPath)) { JPConfig = JPConfigFile.Read(JPConfigPath); // Add all the missing config properties in the json file } JPConfig.Write(JPConfigPath); } catch (Exception ex) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error in jail config file"); Console.ForegroundColor = ConsoleColor.Gray; Log.Error("Jail Config Exception"); Log.Error(ex.ToString()); } }
public Jail(Main game) : base(game) { Order = -3; JPConfig = new JPConfigFile(); }