PostPauseSoundEvent
PostPauseSoundEvent
The PostPauseSoundEvent
is a custom event in Bukkit that is triggered after a sound is paused. This event provides information about the sound that was paused, whether the pause was sent to all players, and the socket ID associated with the event.
Event Details
soundName
String
The name of the sound that was paused.
sendToAll
Boolean
Indicates whether the pause was sent to all players.
socketID
String?
The socket ID associated with the event. This could be null.
Example Usage
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 PostPauseSoundEvent
. When the event is triggered, we log the details of the paused sound 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 events.
Last updated