Skip to Content

bz_ePermissionModificationEvent

This event is called each time a player's permissions are modified by the API's bz_grantPerm() and bz_revokePerm() functions.

Data Object Type

2.4.14 bz_PermissionModificationData_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 playerID

The ID of the player whose permissions were modified

const char* perm

The permission name that was modified in uppercase

bool granted

Set to true if the permission was granted; false if it was revoked

bool customPerm

Set to true if the permission is not part of the standard server permissions

double eventTime

This value is the local server time of the event.

Plug-in Usage

There are no plug-ins in the official distribution that make use of this event. Browse the Plug-in Releases forum for plug-ins which may make 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_PermissionModificationData_V1* dataObject = (bz_PermissionModificationData_V1*)eventData;

// Data
// ---
// (int)          playerID - The ID of the player whose permissions were modified
// (const char*)  perm - The permission name that was modified in uppercase
// (bool)         granted - Set to true if the permission was granted; false if it was revoked
// (bool)         customPerm - Set to true if the permission is not part of the standard server permissions
// (double)       eventTime - This value is the local server time of the event.

Other Administrative Events

Back to bzfs API Events

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

Give us Feedback Edit this Page