diff --git a/providers/FoliaProvider/src/main/java/net/ess3/provider/providers/FoliaSchedulingProvider.java b/providers/FoliaProvider/src/main/java/net/ess3/provider/providers/FoliaSchedulingProvider.java index bb4697727..9ec92f933 100644 --- a/providers/FoliaProvider/src/main/java/net/ess3/provider/providers/FoliaSchedulingProvider.java +++ b/providers/FoliaProvider/src/main/java/net/ess3/provider/providers/FoliaSchedulingProvider.java @@ -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 initTasks = new ArrayList<>(); public FoliaSchedulingProvider(Plugin plugin) { this.plugin = plugin; + plugin.getServer().getPluginManager().registerEvents(this, plugin); } @EventHandler