Class CommandHelperAttribute
- Namespace
- CounterStrikeSharp.API.Modules.Commands
- Assembly
- CounterStrikeSharp.API.dll
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class CommandHelperAttribute : Attribute
- Inheritance
-
objectCommandHelperAttribute
- Inherited Members
Constructors
CommandHelperAttribute(int, string, CommandUsage)
public CommandHelperAttribute(int minArgs = 0, string usage = "", CommandUsage whoCanExecute = CommandUsage.CLIENT_AND_SERVER)
Parameters
minArgsintThe minimum amount of arguments required to execute this command.
usagestringIf the command fails, this string is printed to the caller to show the CommandUtils intended usage.
whoCanExecuteCommandUsageRestricts 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
Usage
public string Usage { get; }
Property Value
WhoCanExcecute
public CommandUsage WhoCanExcecute { get; }