PrePlayerSetSelfMuteEvent
The PrePlayerSetSelfMuteEvent
is a custom event in the MelodyMine plugin. It is triggered before a player's self-mute status is changed. This event provides information about the player and the new mute status.
Event Details
melodyPlayer
MelodyPlayer
The player whose self-mute status is about to change.
value
Boolean
The new mute status that will be set for the player.
This event is cancellable. If the event is cancelled, the player's self-mute status will not change.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, we're logging the player's name and their new mute status to the console. If the new mute status is true
, we cancel the event and log a message indicating that the status change was cancelled.
Last updated