PreUnMutePlayerEvent
The PreUnMutePlayerEvent
is a custom event in the MelodyMine plugin that is called before a player is server unmuted. This event is cancellable, meaning that you can prevent the player from being unmuted by cancelling this event in your event handler.
Class Structure
Method/Value | Type | Description |
---|---|---|
|
| The player who is about to be unmuted. |
|
| 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