PreSendSoundSettingsEvent
The PreSendSoundSettingsEvent
is a custom event in the Bukkit API. It is triggered before the sound settings are sent to the client. This event is cancellable, meaning you can prevent the sound settings from being sent to the client.
Class Structure
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