Loop tasks
package org.example;
import com.xg7plugins.tasks.tasks.TimerTask;
public class ExampleRepeatingTask extends TimerTask {
//Define the plguin configurations
public ExampleRepeatingTask() {
super(
plugin,
id,
delay,
period,
state,
string: executor name or boolean: isABukkitTaskAsync
);
}
@Override
public void run() {
// Code to be executed periodically
}
}
Atualizado