Update src/main/java/com/comphenix/protocol/utility/SchedulerUtil.java

Co-authored-by: Huynh Tien <huynhqtienvtag@gmail.com>
This commit is contained in:
mani123 2023-05-17 09:06:44 +02:00 committed by GitHub
parent 0398b7d717
commit 70c1875cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ public class SchedulerUtil {
foliaScheduler = getScheduler.invoke(Bukkit.getServer()); foliaScheduler = getScheduler.invoke(Bukkit.getServer());
runAtFixedRate = Accessors.getMethodAccessor(foliaScheduler.getClass(), "runAtFixedRate", Plugin.class, 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); cancelTasks = Accessors.getMethodAccessor(foliaScheduler.getClass(), "cancelTasks", Plugin.class);
execute = Accessors.getMethodAccessor(foliaScheduler.getClass(), "execute", Plugin.class, Runnable.class); execute = Accessors.getMethodAccessor(foliaScheduler.getClass(), "execute", Plugin.class, Runnable.class);
} }