PlayerStartVoiceEvent
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