cs2-SimpleAdmin/CS2-SimpleAdmin
Ravid-A c7395e5061 Fix connect penalty counts always showing 0 (1.9.1)
The admin notification on player connect always reported 0 bans, gags,
mutes and silences.

- MuteManager.GetPlayerMutes ran GetRetrieveMutesQuery (the unmute id
  lookup, which needs @pattern/@muteType) instead of GetMuteStatsQuery.
  The query threw, the catch returned (0,0,0), so mute counts were
  always 0.
- CacheManager.GetPlayerBansBySteamId read _steamIdIndex, which only
  holds ACTIVE bans. Anyone with an active ban is kicked before the
  message is sent, so the count was always 0. It now counts all of the
  player's bans in _banCache (expired/unbanned included). The connect
  message is its only caller; the ban check still uses the active index.
2026-10-16 12:47:38 +03:00
..
3rd_party Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
Api Add per-player menu localization and refactor menus 2025-10-30 01:41:08 +01:00
Commands Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Database Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Extensions Refactor fun commands to external module 2025-10-19 03:12:58 +02:00
lang Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Managers Fix connect penalty counts always showing 0 (1.9.1) 2026-10-16 12:47:38 +03:00
Menus Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Models Bump version and adjust SteamID type handling 2026-06-28 00:49:54 +02:00
admin_help.txt Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Config.cs Refactor database layer and add module/plugin improvements 2025-10-03 01:37:03 +02:00
CS2-SimpleAdmin.cs Fix connect penalty counts always showing 0 (1.9.1) 2026-10-16 12:47:38 +03:00
CS2-SimpleAdmin.csproj Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Events.cs Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Helper.cs Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
Variables.cs Fix unban delay, admin loading, rename persistence; add css_history (1.9.0) 2026-10-03 02:33:10 +03:00
VERSION Fix connect penalty counts always showing 0 (1.9.1) 2026-10-16 12:47:38 +03:00