Table of Contents

Class BaseRequiresPermissions

Namespace
CounterStrikeSharp.API.Modules.Admin
Assembly
CounterStrikeSharp.API.dll
public class BaseRequiresPermissions : Attribute
Inheritance
BaseRequiresPermissions
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

string

Enabled

Whether this attribute should be used for permission checks.

public bool Enabled { get; set; }

Property Value

bool

Permissions

The permissions for the command.

public HashSet<string> Permissions { get; }

Property Value

HashSet<string>

Methods

CanExecuteCommand(CCSPlayerController?)

public virtual bool CanExecuteCommand(CCSPlayerController? caller)

Parameters

caller CCSPlayerController

Returns

bool