PlayerStartVoiceEvent
The PlayerStartVoiceEvent
is a custom event in the MelodyMine plugin. This event is triggered when a player starts using the voice chat feature in the client. The event contains a single property, melodyPlayer
, which is an instance of the MelodyPlayer
class representing the player who started the voice chat.
Properties
Property
Type
Description
melodyPlayer
MelodyPlayer
The player who started the voice chat.
Example
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, we create a listener for the PlayerStartVoiceEvent
. When the event is triggered, the onPlayerStartVoice
method is called. Inside this method, we log a message to the console indicating the name of the player who started the voice chat.
Last updated