Class CommandInfo
- Namespace
- CounterStrikeSharp.API.Modules.Commands
- Assembly
- CounterStrikeSharp.API.dll
public class CommandInfo
- Inheritance
-
objectCommandInfo
- Extension Methods
Properties
ArgCount
public int ArgCount { get; }
Property Value
ArgString
public string ArgString { get; }
Property Value
CallingContext
Whether or not the command was sent via Console or Chat.
public CommandCallingContext CallingContext { get; }
Property Value
CallingPlayer
public CCSPlayerController? CallingPlayer { get; }
Property Value
GetCommandString
public string GetCommandString { get; }
Property Value
Handle
public nint Handle { get; }
Property Value
Methods
ArgByIndex(int)
public string ArgByIndex(int index)
Parameters
index
int
Returns
GetArg(int)
public string GetArg(int index)
Parameters
index
int
Returns
ReplyToCommand(string)
Replies to the command with a message.
public void ReplyToCommand(string message)
Parameters
message
stringMessage to send
ReplyToCommand(string, bool)
[Obsolete("Console parameter is now automatically set based on the context of the command.", true)]
public void ReplyToCommand(string message, bool console = false)