PlayerChangeServerEvent
Event Information
Attribute
Type
Description
melodyPlayer
MelodyPlayer
The player who has changed their server. This object contains all the information about the player in the context of the MelodyMine plugin.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API in Java:
Remember to register your listener class in your plugin's onEnable
method to ensure that the event handler is called when the event is triggered.
This example listens for the PlayerChangeServerEvent
and when the event is triggered, it retrieves the MelodyPlayer
who changed their server and logs a message to the console.
Last updated