PostAcceptCallEvent
The PostAcceptCallEvent
is a custom event in the Bukkit API that is triggered after a player accepts a call request in the MelodyMine plugin. This event provides information about the player who accepted the call and the player who initiated the call.
Event Details
melodyPlayer
MelodyPlayer
The player who accepted the call request.
targetPlayer
MelodyPlayer
The player who initiated the call request.
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 PostAcceptCallEvent
. When the event is triggered, we retrieve the names of the player who accepted the call and the player who initiated the call. We then log this information to the console.
Remember to register your event listener in your plugin's onEnable
method for it to work correctly.
Last updated