Table of Contents

Class ServerChatCommand

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A handler for creating server commands.

public class ServerChatCommand : ChatCommand
Inheritance
ServerChatCommand
Inherited Members

Fields

handler

public ServerChatCommandDelegate handler

Field Value

ServerChatCommandDelegate

Methods

CallHandler(IPlayer, int, CmdArgs)

The call handler for the command.

public override void CallHandler(IPlayer player, int groupId, CmdArgs args)

Parameters

player IPlayer

The player calling the command.

groupId int

The groupID of the player.

args CmdArgs

The 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

Returns

bool