PreUnMutePlayerEvent
Class Structure
Method/Value
Type
Description
melodyPlayer
MelodyPlayer
The player who is about to be unmuted.
isCancelled
boolean
Whether the event is cancelled. If true, the player will not be unmuted.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
Remember to register your event listener with the Bukkit plugin manager in your plugin's onEnable
method for your listener to function.
This example listens for the PreUnMutePlayerEvent
, logs a message to the console when the event is triggered, and cancels the event if the player's name is "TAHER7", preventing them from being unmuted.
Last updated