PostEndCallEvent
The PostEndCallEvent
is a custom event in the MelodyMine plugin that is triggered after a voice call between two players has ended. This event provides information about the two players involved in the call.
Event Details
melodyPlayer
MelodyPlayer
The player who was in the call.
targetPlayer
MelodyPlayer
The other player who was in the call.
Event Usage
You can listen to this event in your plugin and perform actions based on the event details. Here is an example of how to listen to this event using the Bukkit event API:
In this example, we're listening for the PostEndCallEvent
and when it's triggered, we're logging the names of the players who were in the call to the console.
Remember to register your event listener in your plugin's onEnable
method for it to work.
Last updated