PostPendingCallEndEvent
The PostPendingCallEndEvent
is a custom event in the Bukkit API that is triggered after a pending call between two players has ended. This event provides access to the MelodyPlayer
instances of both the initiating player and the target player of the call.
Event Details
Field
Type
Description
melodyPlayer
MelodyPlayer
The player who initiated the call.
targetPlayer
MelodyPlayer
The player who was the target of the call.
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 PostPendingCallEndEvent
. When the event is triggered, we retrieve the MelodyPlayer
instances of the initiating player and the target player.
Remember to register your event listener in your plugin's onEnable
method like so:
Last updated