PlayerChangeTalkEvent
The PlayerChangeTalkEvent
is a custom event in the MelodyMine plugin. This event is triggered when a player's talk status changes in the voice chat. It contains information about the player's UUID, the server they are on, and their current talk status.
Event Details
Field | Type | Description |
---|---|---|
|
| The player whose talk status has changed. |
|
| The Talk Data that the player is changed. |
Example Usage
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 PlayerChangeTalkEvent
. When the event is triggered, we retrieve the player's UUID, the server they are on, and their current talk status. We then log this information to the console.
Remember to register your event listener in your plugin's onEnable
method for it to work correctly.
This will ensure that the onPlayerChangeTalk
method is called whenever a PlayerChangeTalkEvent
is triggered.
Last updated