zio fork 1.8.2b-zio3: ban reasons on join, @css/bypassipban, spectators keep hidden
Banned players are let in long enough to be told the ban's reason and time left, then kicked after KickTime, instead of only seeing "Your client is not allowed to join this server"; they can't chat, talk or join a team meanwhile. New permission @css/bypassipban (players or groups, implied by @css/root) skips IP and shared-IP bans, leaving only bans on their own SteamID, on join and in the periodic check. Moving to spectators no longer unhides a hidden admin; only joining T or CT does.
This commit is contained in:
parent
6171162ae9
commit
2069c1a690
8 changed files with 142 additions and 25 deletions
|
|
@ -41,6 +41,8 @@ public partial class CS2_SimpleAdmin
|
|||
|
||||
// Player Management
|
||||
internal static readonly HashSet<int> SilentPlayers = [];
|
||||
// zio: banned players let in only to be told why, then kicked. They can't chat or join a team.
|
||||
internal static readonly HashSet<int> PendingBanKicks = [];
|
||||
internal static readonly Dictionary<ulong, string> RenamedPlayers = [];
|
||||
internal static readonly ConcurrentDictionary<ulong, PlayerInfo> PlayersInfo = [];
|
||||
internal static readonly List<CCSPlayerController> CachedPlayers = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue