public override bool UnInstallMod(Service service, GenericMod gameMod)
 {
     try
     {
         var server             = Server.GetSelectedServer();
         var modIoConfiguration = ModIoBrowser.GetModIoConfigurationForCurrentGame();
         var modForGame         = MMod.GetModForGame(modIoConfiguration.SelectedGameId, int.Parse(gameMod.Id));
         var script             = GenerateScript(service, modIoConfiguration, false);
         var modJson            = JsonConvert.SerializeObject(modForGame);
         var type = gameMod.GetType();
         server.ServerUtilitiesService.ExecuteScript(script, 1, new[]
         {
             new JsonSerializedScriptVariable
             {
                 Name  = "Mod",
                 Value = modJson,
                 Type  = type.FullNameWithAssembly()
             }
         });
         return(true);
     }
     catch (Exception e)
     {
         _logger.LogException(e);
         return(false);
     }
 }
        public override GenericMod GetMod(string s, ModSearchType modSearchType)
        {
            var modIoConfiguration = ModIoBrowser.GetModIoConfigurationForCurrentGame();

            return(MMod.GetModForGame(modIoConfiguration.SelectedGameId, int.Parse(s)));
        }