PostDenyCallEvent
Event Details
Attribute
Type
Description
melodyPlayer
MelodyPlayer
The player who denied the call.
targetPlayer
MelodyPlayer
The player who was denied the call.
canSendMessage
boolean
A flag indicating whether a message can be sent in response to the event.
Example
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 PostDenyCallEvent
. When the event is triggered, we retrieve the MelodyPlayer
who denied the call and the MelodyPlayer
who was denied the call. If the canSendMessage
flag is true, we log a message to the console indicating that the call was denied.
Remember to register your event listener in your plugin's onEnable
method for it to work correctly.
Last updated