PostPauseSoundEvent
PostPauseSoundEvent
Event Details
Field
Type
Description
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