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); }
public override GenericMod GetMod(string s, ModSearchType modSearchType) { return(DetailedModData.GetDetailedModData(s)); }