PlayerEndVoiceEvent
The PlayerEndVoiceEvent
is a custom event in the MelodyMine plugin. This event is triggered when a player ends their voice session on the client. The event contains a single property, melodyPlayer
, which is an instance of the MelodyPlayer
class representing the player who ended their voice session.
Properties
Property | Type | Description |
---|---|---|
|
| 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