public Jail(Main game)
     : base(game)
 {
     Order = 3;
     JPConfig = new JPConfigFile();
     Players = new Player[256];
 }
Пример #2
0
 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());
     }
 }
Пример #3
0
 public Jail(Main game)
     : base(game)
 {
     Order    = -3;
     JPConfig = new JPConfigFile();
 }
 public Jail(Main game)
     : base(game)
 {
     Order = -3;
     JPConfig = new JPConfigFile();
 }