PostSetVolumeEvent
The PostSetVolumeEvent
is a custom event in the MelodyMine plugin. This event is triggered after the volume of a player is set. It provides information about the player whose volume was set and the target player who set the volume.
Event Details
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
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