PreToggleCallEvent
Event Details
Attribute
Description
melodyPlayer
The MelodyPlayer
instance representing the player who is about to toggle their call status.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
In this example, we create a listener for the PreToggleCallEvent
. When the event is triggered, we retrieve the MelodyPlayer
instance from the event and print a message to the console using Bukkit's logger.
Remember to register your event listener in your plugin's onEnable()
method to ensure that it listens to the event correctly.
Last updated