Ejemplo n.º 1
0
        public void StartGameMode(Client client, uint gmId, bool startImmediately = false)
        {
            try
            {
                BaseGameMode gameMode = GameModeHandler.Instance.GetGameModeById(gmId);

                if (startImmediately == false)
                {
                    gameMode.StartCountdown();
                }
                else
                {
                    gameMode.StartGameMode();
                }
            }
            catch (Exception e)
            {
                Main.Logger.LogClient(client, e.Message);
            }
        }