示例#1
0
    public void PreventMapTimeout()
    {
        double passedSeconds = PassedSeconds();

        if (passedSeconds > 28 * 60 && passedSeconds < 24 * 60 * 60) //Ignore extremely long times due to time initialization being a long ago time.
        {
            _chat.SendChatMessage("Sever may timeout soon. Changing map to prevent timeout.");
            RandomAndNextMap();
        }
    }