diff --git a/src/main/java/com/comphenix/protocol/utility/SchedulerUtil.java b/src/main/java/com/comphenix/protocol/utility/SchedulerUtil.java index 47040212..aa186b86 100644 --- a/src/main/java/com/comphenix/protocol/utility/SchedulerUtil.java +++ b/src/main/java/com/comphenix/protocol/utility/SchedulerUtil.java @@ -27,7 +27,7 @@ public class SchedulerUtil { foliaScheduler = getScheduler.invoke(Bukkit.getServer()); runAtFixedRate = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runAtFixedRate", Plugin.class, - Runnable.class, long.class, long.class); + Consumer.class, long.class, long.class); cancelTasks = Accessors.getMethodAccessor(foliaScheduler.getClass(), "cancelTasks", Plugin.class); execute = Accessors.getMethodAccessor(foliaScheduler.getClass(), "execute", Plugin.class, Runnable.class); }