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
IServerPlayerThe player that submitted the chat message
channelId
intThe chat group id from where the message was sent from
message
stringThe chat message
data
stringconsumed
BoolRefIf set, the even is considered consumed, i.e. should no longer be handled further by the game engine
- Extension Methods