PlayerChangeServerEvent
The PlayerChangeServerEvent
is a custom event class in the MelodyMine plugin. This event is triggered when a player changes their server in the context of the plugin. The event carries information about the player who triggered the event in the form of a MelodyPlayer
object.
Event Information
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