PostRenewDataEvent
PostRenewDataEvent
The PostRenewDataEvent
is a custom event in the MelodyMine plugin. This event is triggered after the renewal of data in the client. The data being renewed is encapsulated in the RenewData
object, which is passed to the event.
getData()
Returns the RenewData
object associated with this event.
Here is an example of how to listen to this event using the Bukkit event API in Java:
In this example, the ExampleListener
class implements the Listener
interface from the Bukkit API. The onPostRenewData
method is decorated with the @EventHandler
annotation, indicating that it should be called when the PostRenewDataEvent
is triggered. Inside this method, we retrieve the RenewData
object from the event and print the number of players in the data to the console.
Remember to register your listener with the Bukkit plugin manager to ensure your event handler method is called.
Last updated