zio fork 1.8.2b-zio9: admin menu honours command overrides, @zio/penalties
Some checks are pending
Build and Publish / build (push) Waiting to run
Build and Publish / publish (push) Blocked by required conditions

Every player and server entry in the admin menu names its command, and an overridden entry is
checked with the override's check_type ("any" passes with one flag), the way CSS checks the typed
command; upstream required every flag. css_penalties for someone else needs @zio/penalties or
@css/root instead of @css/kick.
This commit is contained in:
Astra 2026-09-29 12:44:15 +01:00
parent 65a413fa52
commit cf1090cbd2
6 changed files with 38 additions and 15 deletions

View file

@ -39,7 +39,9 @@ public partial class CS2_SimpleAdmin
var userId = caller.UserId.Value;
var steamId = caller.SteamID;
if (!string.IsNullOrEmpty(command.GetArg(1)) && AdminManager.PlayerHasPermissions(new SteamID(caller.SteamID), "@css/kick"))
// zio: other players' penalties need @zio/penalties (or root), not @css/kick.
if (!string.IsNullOrEmpty(command.GetArg(1)) && (AdminManager.PlayerHasPermissions(new SteamID(caller.SteamID), "@zio/penalties")
|| AdminManager.PlayerHasPermissions(new SteamID(caller.SteamID), "@css/root")))
{
var targets = GetTarget(command);