PostToggleCallEvent
The PostToggleCallEvent
is a custom event in the MelodyMine plugin. This event is triggered after a player toggles their call status. It provides information about the player who toggled their call status.
Event Details
Attribute
Type
Description
melodyPlayer
MelodyPlayer
The player who toggled their call status.
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 PostToggleCallEvent
. When the event is triggered, we retrieve the MelodyPlayer
who toggled their call status and print a message to the console.
Remember to register your event listener in your plugin's onEnable()
method for it to work.
Last updated