public void Start() { string FougeriteDirectoryConfig = Path.Combine(Util.GetServerFolder(), "FougeriteDirectory.cfg"); Config.Init(FougeriteDirectoryConfig); Logger.Init(); Rust.Steam.Server.SetModded(); Rust.Steam.Server.Official = false; if (ApplyOptions()) { ModuleManager.LoadModules(); Fougerite.Hooks.ServerStarted(); } }
public void Start() { string FougeriteDirectoryConfig = Path.Combine(Util.GetServerFolder(), "FougeriteDirectory.cfg"); Config.Init(FougeriteDirectoryConfig); Logger.Init(); Contract.ContractFailed += (sender, args) => args.SetUnwind(); Rust.Steam.Server.SetModded(); Rust.Steam.Server.Official = false; // look for the string 'false' to disable. not a bool check if (Fougerite.Config.GetValue("Fougerite", "enabled") == "false") { Debug.Log("Fougerite is disabled. No modules loaded. No hooks called."); } else { ModuleManager.LoadModules(); Fougerite.Hooks.ServerStarted(); } }