Sueta
UP

UpdateEventLib

2018-03-23

Create easier and more functional updates on things

·Plugin

UpdateEventLib is a library which allows a player to listen for the UpdateEvent, an event which is ran ever second and every tick.

You can use the standard:

@EventHandler
public void eventName(UpdateEvent event)
{
    //Do Stuff
}

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.

Similar projects

Plugin →