internal static Explosives_Config Read(string path)
 {
     if (!File.Exists(path))
     {
         Console.WriteLine("Using default configs");
         Explosives_Config config = new Explosives_Config();
         config.Write(path);
         return(config);
     }
     using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
     {
         return(Read(fs));
     }
 }
 private void OnReload(ReloadEventArgs reloadEventArgs)
 {
     Console.WriteLine("Reload TshockLogs_Explosives_Config.json");
     ExplosivesConfig = Explosives_Config.Read(ConfigFilePath);
     SetupExplosivesDictionary();
 }
 /// <summary>
 /// Initializes a new instance of the TestPlugin class.
 /// This is where you set the plugin's order and perfrom other constructor logic
 /// </summary>
 public Explosives(Main game) : base(game)
 {
     ExplosivesConfig = Explosives_Config.Read(ConfigFilePath);
     SetupExplosivesDictionary();
 }