24 lines
503 B
Java
24 lines
503 B
Java
package com.alttd.vboosters.task;
|
|
|
|
import com.alttd.vboosters.VelocityBoosters;
|
|
import com.alttd.vboosters.config.Config;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
public class BoosterTask {
|
|
|
|
private VelocityBoosters plugin;
|
|
|
|
public BoosterTask() {
|
|
super();
|
|
plugin = VelocityBoosters.getPlugin();
|
|
}
|
|
|
|
public void init() {
|
|
plugin.getProxy().getScheduler().buildTask(plugin, () -> {
|
|
|
|
}).repeat(Config.TaskCheckFrequency, TimeUnit.SECONDS).schedule();
|
|
}
|
|
|
|
}
|