PlayerLeaveWebEvent
The PlayerLeaveWebEvent
is a custom event in the MelodyMine plugin. This event is triggered when a player leaves the web interface of the plugin. The event contains a single property, melodyPlayer
, which is an instance of the MelodyPlayer
class representing the player who has left the web interface.
Properties
Property | Type | Description |
---|---|---|
|
| The player who has left the web interface. |
Example
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, we create a class ExampleListener
that implements the Listener
interface. Inside this class, we define a method onPlayerLeaveWeb
annotated with @EventHandler
. This method will be called whenever a PlayerLeaveWebEvent
is triggered. Inside this method, we retrieve the name of the player who left the web interface and log a message to the console.
Last updated