PrePauseSoundEvent
Class Properties
Property
Type
Description
soundName
String
The name of the sound that is about to be paused.
sendToAll
Boolean
Indicates whether the pause event should be sent to all players.
socketID
String?
The socket ID associated with the event. This could be null.
Class Methods
Method
Return Type
Description
isCancelled
Boolean
Checks if the event is cancelled.
setCancelled
Void
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
Remember to register your event listener in your plugin's onEnable
method for the event to be properly handled.
Last updated