PlayerEndVoiceEvent
Properties
Property
Type
Description
melodyPlayer
MelodyPlayer
The player who ended their voice session.
Example
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, we're creating a listener for the PlayerEndVoiceEvent
. When a player ends their voice session, the onPlayerEndVoice
method is called, and the player's name is logged to the console with a message indicating that they have ended their voice session.
Last updated