PreEndCallEvent
The PreEndCallEvent
is a custom event in the Bukkit API that is called before a call between two players is ended. This event is cancellable, which means you can prevent the call from ending based on your custom logic. It also allows you to control whether a message is sent to the players involved in the call.
Class Structure
Method/Variable | Type | Description |
---|---|---|
|
| The player who is in the call that is about to end. |
|
| The other player involved in the call. |
|
| Checks if the event is cancelled. |
|
| Sets the cancellation state of the event. |
|
| Determines whether a message can be sent to the players involved in the call. |
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
Remember to register your event listener in your plugin's onEnable()
method for it to work.
Last updated