PlayerChangeControlWebEvent
Event Details
Property
Description
melodyPlayer
The MelodyPlayer
instance representing the player who changed their control settings.
control
The MelodyControl
instance representing the control settings that were changed.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, we're creating a listener for the PlayerChangeControlWebEvent
. When the event is triggered, we retrieve the player's name, the type of control that was changed, and the new value of the control. We then log this information to the console.
Remember to register your listener in your plugin's onEnable
method:
Last updated