progress on boosters

This commit is contained in:
destro174 committed 2021-11-04 17:57:55 +01:00
1 parent b6cefd5403
commit 95d219d546
13 files changed
+677 -24

No files matched your search

@@ -0,0 +1,23 @@
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();
}
}