PostStartCallEvent
The PostStartCallEvent
is a custom event in the MelodyMine plugin that is called after a call has been started between two players. This event provides access to the MelodyPlayer
instances of the two players involved in the call.
Event Details
melodyPlayer
MelodyPlayer
The player who initiated the call.
targetPlayer
MelodyPlayer
The player who is 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, the onPostStartCall
method is annotated with @EventHandler
, which means it will be called whenever a PostStartCallEvent
occurs. Inside the method, we retrieve the MelodyPlayer
instances of the two players involved in the call and log a message to the console.
Remember to register your event listener in your plugin's onEnable
method for it to work.
This will ensure that the ExampleListener
class is listening for events.
Last updated