PreEndPendingCallEvent
The PreEndPendingCallEvent
is a custom event in the MelodyMine plugin. This event is triggered before a pending call ends between two players. It provides access to the MelodyPlayer
instances of both the caller and the receiver.
Event Details
Field | Type | Description |
---|---|---|
|
| The player who initiated the call. |
|
| 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