Class BaseRequiresPermissions
- Namespace
- CounterStrikeSharp.API.Modules.Admin
- Assembly
- CounterStrikeSharp.API.dll
public class BaseRequiresPermissions : Attribute
- Inheritance
-
objectBaseRequiresPermissions
- Derived
- Inherited Members
Constructors
BaseRequiresPermissions(params string[])
public BaseRequiresPermissions(params string[] permissions)
Parameters
permissions
string[]
Properties
Command
The name of the command that is attached to this attribute.
public string Command { get; set; }
Property Value
Enabled
Whether this attribute should be used for permission checks.
public bool Enabled { get; set; }
Property Value
Permissions
The permissions for the command.
public HashSet<string> Permissions { get; }
Property Value
Methods
CanExecuteCommand(CCSPlayerController?)
public virtual bool CanExecuteCommand(CCSPlayerController? caller)
Parameters
caller
CCSPlayerController