PostPlayerMuteEvent
The PostPlayerMuteEvent
is a custom event in the Bukkit API that is called after a player's server mute status has been changed.
Class Structure
Method | Return Type | Description |
---|---|---|
|
| Returns the |
Usage
To listen to this event, you need to create a class that implements the Listener
interface and use the @EventHandler
annotation to mark a method that will be called when the event is triggered.
Here is an example of how to listen to the PostPlayerMuteEvent
:
In this example, when a player's mute status changes, a message is printed to the console with the player's name.
Remember to register your listener in your plugin's onEnable()
method to ensure that your listener receives the events.
This will ensure that your MyListener
class will receive the PostPlayerMuteEvent
when it is called.
Last updated