private bool OnHasEnoughPlayersHook(HasEnoughPlayersHookEventArgs e) { if (e.GameRule.GameRule == GameRule.Deathmatch) { e.Result = true; } return(true); }
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); }