public void Start() { string FougeriteDirectoryConfig = Path.Combine(Util.GetServerFolder(), "FougeriteDirectory.cfg"); Config.Init(FougeriteDirectoryConfig); Logger.Init(); _timergo = new GameObject(); _timergo.AddComponent <CTimerHandler>(); UnityEngine.Object.DontDestroyOnLoad(_timergo); CTimer.StartWatching(); Rust.Steam.Server.SetModded(); Rust.Steam.Server.Official = false; if (ApplyOptions()) { //ModuleManager.LoadModules(); LuaPluginLoader.GetInstance(); CSharpPluginLoader.GetInstance(); JavaScriptPluginLoader.GetInstance(); PythonPluginLoader.GetInstance(); Fougerite.Hooks.ServerStarted(); Fougerite.ShutdownCatcher.Hook(); } SQLiteConnector.GetInstance.Setup(); }
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(); LuaPluginLoader.GetInstance(); CSharpPluginLoader.GetInstance(); JavaScriptPluginLoader.GetInstance(); PythonPluginLoader.GetInstance(); Fougerite.Hooks.ServerStarted(); Fougerite.ShutdownCatcher.Hook(); } SQLiteConnector.GetInstance.Setup(); }