Table of Contents

Delegate PlayerChatDelegate

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

When the player wrote a chat message. Set consumed.value to true to prevent further processing of this chat message

public delegate void PlayerChatDelegate(IServerPlayer byPlayer, int channelId, ref string message, ref string data, BoolRef consumed)

Parameters

byPlayer IServerPlayer

The player that submitted the chat message

channelId int

The chat group id from where the message was sent from

message string

The chat message

data string
consumed BoolRef

If set, the even is considered consumed, i.e. should no longer be handled further by the game engine

Extension Methods