From c6f2d5530dff70880d90a32c719430462f6b888f Mon Sep 17 00:00:00 2001 From: jascotty2 Date: Thu, 19 Sep 2019 09:20:49 -0500 Subject: [PATCH] remove sync from datamanager --- .../songoda/core/database/DataManagerAbstract.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Core/src/main/java/com/songoda/core/database/DataManagerAbstract.java b/Core/src/main/java/com/songoda/core/database/DataManagerAbstract.java index 6625d718..57ae5388 100644 --- a/Core/src/main/java/com/songoda/core/database/DataManagerAbstract.java +++ b/Core/src/main/java/com/songoda/core/database/DataManagerAbstract.java @@ -43,12 +43,13 @@ public class DataManagerAbstract { } } + /** + * Queue a task to be run asynchronously.
+ * TODO: This needs to be separated from BukkitScheduler + * + * @param runnable task to run + */ public void async(Runnable runnable) { Bukkit.getScheduler().runTaskAsynchronously(this.plugin, runnable); } - - public void sync(Runnable runnable) { - Bukkit.getScheduler().runTask(this.plugin, runnable); - } - }