Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }