UpdateEventLib is a library which allows a player to listen for the UpdateEvent, an event which is ran ever second and every tick.
- Tested Minecraft Versions:
You can use the standard:
With this you can use getReason() to return an UpdateReason of TICK or SECOND. Or you can create your own updates every custom amount of ticks and listen for them by creating a Timer object in main and insert a custom string as the name of the timer. If you do not create a custom timer using a name the getName() function will return null.Code (Text):@EventHandler
public void eventName(UpdateEvent event)