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); - } - }