Class ServerChatCommand
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
A handler for creating server commands. Open in GitHub
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
playerIPlayerThe player calling the command.
groupIdintThe groupID of the player.
argsCmdArgsThe arguments of the command.
HasPrivilege(IServerPlayer)
Whether or not the player has the privilage to run the command.
public bool HasPrivilege(IServerPlayer player)
Parameters
playerIServerPlayer