PlayerLeaveWebEvent
Properties
Property
Type
Description
melodyPlayer
MelodyPlayer
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