Beispiel #1
0
        private void OnServerInitialized()
        {
            if (serverInitialized)
            {
                return;
            }

            Analytics.Collect();
            HurtworldExtension.ServerConsole();
            SteamGameServer.SetGameTags("oxide,modded");

            serverInitialized = true;
        }
        private void IOnServerInitialized()
        {
            if (!serverInitialized)
            {
                Analytics.Collect();
                HurtworldExtension.ServerConsole();
                SteamGameServer.SetGameTags("oxide,modded");

                // Let plugins know server startup is complete
                serverInitialized = true;
                Interface.CallHook("OnServerInitialized", serverInitialized);

                Interface.Oxide.LogInfo($"Server version is: {Server.Version}");
            }
        }
Beispiel #3
0
        private void OnServerInitialized()
        {
            if (serverInitialized)
            {
                return;
            }
            serverInitialized = true;

            // Add 'oxide' and 'modded' tags
            SteamGameServer.SetGameTags("oxide,modded");

            // Configure the hostname after it has been set
            RemoteLogger.SetTag("hostname", GameManager.Instance.ServerConfig.GameName);

            // Update server console window and status bars
            HurtworldExtension.ServerConsole();
        }