PostEnableVoiceEvent
PostEnableVoiceEvent
The PostEnableVoiceEvent
is a custom event in the MelodyMine plugin. This event is triggered after a player enables their voice chat. It provides information about the player who enabled their voice chat.
Event Details
Field | Type | Description |
---|---|---|
|
| The name of the player who enabled their voice chat. |
|
| The UUID of the player who enabled their voice chat. |
|
| The server of the player who enabled their voice chat. |
|
| The socket ID of the player who enabled their voice chat. |
Methods
Method | Return Type | Description |
---|---|---|
getPlayer() |
| Returns the |
|
| Returns the |
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 PostEnableVoiceEvent
. When the event is triggered, we retrieve the name of the player who enabled their voice chat and log it to the console.
Last updated