PostAcceptCallEvent
Event Details
Property
Type
Description
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