From 24edccf01dcd0b9a8ddfb33503805ef5760592d4 Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 21 Dec 2020 18:57:07 +0100 Subject: [PATCH] No need for scheduler --- src/main/java/tsp/headdb/HeadDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/HeadDB.java b/src/main/java/tsp/headdb/HeadDB.java index 00722cd..1e4de39 100644 --- a/src/main/java/tsp/headdb/HeadDB.java +++ b/src/main/java/tsp/headdb/HeadDB.java @@ -45,7 +45,7 @@ public class HeadDB extends JavaPlugin { Bukkit.getScheduler().runTaskAsynchronously(this, task -> HeadAPI.getDatabase().update()); }else { Log.debug("Initializing Database... (SYNC)"); - Bukkit.getScheduler().runTask(this, task -> HeadAPI.getDatabase().update()); + HeadAPI.getDatabase().update(); } }