Skip to Content

bz_eMessageFilteredEvent

This event is called whenever a message is censored by the swear filter

Data Object Type

2.4.0 bz_MessageFilteredEventData_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 player

The player who sent the filtered message

bz_ApiString rawMessage

The unfiltered text of the message

bz_ApiString filteredMessage

The text of the message after passing through the filter

double eventTime

The local server time at which the message was sent

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_MessageFilteredEventData_V1* dataObject = (bz_MessageFilteredEventData_V1*)eventData;

// Data
// ---
// (int)          player - The player who sent the filtered message
// (bz_ApiString) rawMessage - The unfiltered text of the message
// (bz_ApiString) filteredMessage - The text of the message after passing through the filter
// (double)       eventTime - The local server time at which the message was sent

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