PreSendSoundSettingsEvent
Class Structure
Method/Variable
Type
Description
socketID
String
The ID of the socket to which the sound settings are being sent.
isCancelled
Boolean
A flag indicating whether the event is cancelled. If true, the sound settings will not be sent.
Example Usage
Here is an example of how to listen to this event:
Remember to register your listener in your plugin's onEnable
method to ensure that it's active.
This listener will log the ID of the socket to which the sound settings are being sent every time the PreSendSoundSettingsEvent
is triggered. You can also cancel the event to prevent the sound settings from being sent.
Last updated