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();
 }