コード例 #1
0
        public override bool UnInstallMod(Service service, GenericMod gameMod)
        {
            var server          = Server.GetSelectedServer();
            var fileSystem      = server.FileSystemService;
            var detailedModData = DetailedModData.GetDetailedModData(gameMod.Id);
            var combinePath     = TCAdmin.SDK.Misc.FileSystem.CombinePath(server.OperatingSystem, service.RootDirectory,
                                                                          "oxide", "plugins", detailedModData.Name + ".cs");

            fileSystem.DeleteFile(combinePath);

            return(true);
        }
コード例 #2
0
 public override GenericMod GetMod(string s, ModSearchType modSearchType)
 {
     return(DetailedModData.GetDetailedModData(s));
 }