Class ChatCommand
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
A base class for all chat commands.
public abstract class ChatCommand
- Inheritance
-
ChatCommand
- Derived
- Inherited Members
- Extension Methods
Fields
Command
the command calling name.
public string Command
Field Value
Description
The description of the command.
public string Description
Field Value
RequiredPrivilege
The required privilage for the command to be ran.
public string RequiredPrivilege
Field Value
Syntax
The syntax of the command.
public string Syntax
Field Value
Methods
CallHandler(IPlayer, int, CmdArgs)
The call handler for the command.
public abstract void CallHandler(IPlayer player, int groupId, CmdArgs args)
Parameters
player
IPlayerThe player calling the command.
groupId
intThe groupID of the player.
args
CmdArgsThe arguments of the command.
GetDescription()
gets the description of the command.
public virtual string GetDescription()
Returns
GetHelpMessage()
Gets the help message of the command.
public virtual string GetHelpMessage()
Returns
GetSyntax()
Gets the syntax of the command.
public virtual string GetSyntax()