Exemplo n.º 1
0
        private bool OnHasEnoughPlayersHook(HasEnoughPlayersHookEventArgs e)
        {
            if (e.GameRule.GameRule == GameRule.Deathmatch)
            {
                e.Result = true;
            }

            return(true);
        }
Exemplo n.º 2
0
        private bool OnHasEnoughPlayersHook(HasEnoughPlayersHookEventArgs e)
        {
            var options = _soloModeOptions.CurrentValue;

            if (options.Enabled &&
                e.GameRule.Room.Options.Name.Contains(_soloModeOptions.CurrentValue.Trigger, StringComparison.OrdinalIgnoreCase))
            {
                e.Result = true;
                return(false);
            }

            return(true);
        }