Table of Contents

Class CommandHelperAttribute

Namespace
CounterStrikeSharp.API.Modules.Commands
Assembly
CounterStrikeSharp.API.dll
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class CommandHelperAttribute : Attribute
Inheritance
CommandHelperAttribute
Inherited Members

Constructors

CommandHelperAttribute(int, string, CommandUsage)

public CommandHelperAttribute(int minArgs = 0, string usage = "", CommandUsage whoCanExecute = CommandUsage.CLIENT_AND_SERVER)

Parameters

minArgs int

The minimum amount of arguments required to execute this command.

usage string

If the command fails, this string is printed to the caller to show the CommandUtils intended usage.

whoCanExecute CommandUsage

Restricts the command so it can only be executed by players, the server console, or both (see CommandUsage).

Properties

MinArgs

public int MinArgs { get; }

Property Value

int

Usage

public string Usage { get; }

Property Value

string

WhoCanExcecute

public CommandUsage WhoCanExcecute { get; }

Property Value

CommandUsage