Skip to Content

bz_eServerMsgEvent

This event is called each time the server sends a message

Data Object Type

2.4.0 bz_ServerMsgEventData_V1

Parameters

These are the values accessible in the bz_EventData variable that's made available in the Event method.

Data Type Name Description
int to

ID of the player receiving the message

bz_eTeamType team

The team/group receiving the message

bz_ApiString message

The message text

double eventTime

Time local server time for the event.

Plug-in Usage

Here's a list of plug-ins part of the official distribution that makes use of this event:

Plug-in Example

This block of code can be used to get started when implementing the Event() function of your plug-in.

bz_ServerMsgEventData_V1* dataObject = (bz_ServerMsgEventData_V1*)eventData;

// Data
// ---
// (int)          to - ID of the player receiving the message
// (bz_eTeamType) team - The team/group receiving the message
// (bz_ApiString) message - The message text
// (double)       eventTime - Time local server time for the event.

Other Chat Events

Back to bzfs API Events

This content is maintained on GitHub. We welcome any feedback and improvements!

Give us Feedback Edit this Page