From a2a0db42e8643901021af0383f7cb8ce0b0ee2c2 Mon Sep 17 00:00:00 2001 From: James Mortemore Date: Wed, 11 Dec 2024 19:39:25 +0000 Subject: [PATCH] fix(velocity): correctly repeat tasks --- .../java/me.confuser.banmanager.velocity/BMVelocityPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/velocity/src/main/java/me.confuser.banmanager.velocity/BMVelocityPlugin.java b/velocity/src/main/java/me.confuser.banmanager.velocity/BMVelocityPlugin.java index f643286f..2f73daa4 100644 --- a/velocity/src/main/java/me.confuser.banmanager.velocity/BMVelocityPlugin.java +++ b/velocity/src/main/java/me.confuser.banmanager.velocity/BMVelocityPlugin.java @@ -250,7 +250,7 @@ public void setupRunnables() { private void setupAsyncRunnable(long length, Runnable runnable) { if (length <= 0) return; - server.getScheduler().buildTask(this, runnable).delay(length, TimeUnit.SECONDS).schedule(); + server.getScheduler().buildTask(this, runnable).repeat(length, TimeUnit.SECONDS).schedule(); } @SneakyThrows private InputStream getResourceAsStream(String resource) {