Class ServerChatCommand
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
A handler for creating server commands.
public class ServerChatCommand : ChatCommand
- Inheritance
-
ServerChatCommand
- Inherited Members
- Extension Methods
Fields
handler
public ServerChatCommandDelegate handler
Field Value
Methods
CallHandler(IPlayer, int, CmdArgs)
The call handler for the command.
public override 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.
HasPrivilege(IServerPlayer)
Whether or not the player has the privilage to run the command.
public bool HasPrivilege(IServerPlayer player)
Parameters
player
IServerPlayer