PostRenewDataEvent
Method
Description
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