PostChangeSoundVolumeEvent
Event Details
Property
Description
soundName
The name of the sound that had its volume changed.
sendToAll
A boolean indicating whether the volume change should be sent to all players.
socketID
The socket ID associated with the event.
volume
The new volume level of the sound.
Example
Here is an example of how to listen to this event using the Bukkit event API:
In this example, we create a listener for the PostChangeSoundVolumeEvent
. When the event is triggered, we log the details of the event to the console using Bukkit's logger.
Remember to register your listener in your plugin's onEnable
method to ensure that it listens to the event.
This will ensure that the VolumeChangeListener
starts listening for the PostChangeSoundVolumeEvent
when your plugin is enabled.
Last updated