PreEndPendingCallEvent
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 PreEndPendingCallEvent
. When the event is triggered, we retrieve the MelodyPlayer
instances of the caller and the receiver. We then log a message to the console indicating that the caller is ending a pending call with the receiver.
Remember to register your event listener in your plugin's onEnable
method like so:
Last updated