mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Actually fire init tasks in Folia
This commit is contained in:
parent
07fbf93001
commit
20882940c5
@ -6,18 +6,20 @@ import net.ess3.provider.SchedulingProvider;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class FoliaSchedulingProvider implements SchedulingProvider {
|
||||
public class FoliaSchedulingProvider implements SchedulingProvider, Listener {
|
||||
private final Plugin plugin;
|
||||
private List<Runnable> initTasks = new ArrayList<>();
|
||||
|
||||
public FoliaSchedulingProvider(Plugin plugin) {
|
||||
this.plugin = plugin;
|
||||
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user