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
byPlayerIServerPlayerThe player that submitted the chat message
channelIdintThe chat group id from where the message was sent from
messagestringThe chat message
datastringconsumedBoolRefIf set, the even is considered consumed, i.e. should no longer be handled further by the game engine
- Extension Methods