PostSetVolumeEvent
Event Details
Field
Type
Description
playerUuid
String
The UUID of the player whose volume was set.
targetSocketID
String
The socket ID of the target player who set the volume.
Methods
Method
Return Type
Description
getPlayer()
MelodyPlayer
Returns the MelodyPlayer
instance of the player whose volume was set.
getTargetPlayer()
MelodyPlayer
Returns the MelodyPlayer
instance of the target player who set the volume.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
Remember to register your listener in your plugin's onEnable()
method to ensure that it is active.
This example will print a message to the console whenever a player's volume is set, indicating who set the volume and for whom.
Last updated