🕐Create Timers
Create a timer
Overview
Methods
timer
timerpublic static BukkitTask timer(long delay, long period, final Runnable task)Example
Last updated
Create a timer
timerpublic static BukkitTask timer(long delay, long period, final Runnable task)Last updated
long delay = 0; // Start the task immediately
long period = 20; // Repeat every 20 ticks (1 second)
Runnable task = () -> {
// Your task logic here
};
BukkitTask repeatingTask = Timer.timer(delay, period, task);