zio fork 1.8.2b-zio9: admin menu honours command overrides, @zio/penalties
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:
parent
65a413fa52
commit
cf1090cbd2
6 changed files with 38 additions and 15 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue