remove sync from datamanager

This commit is contained in:
jascotty2 2019-09-19 09:20:49 -05:00
parent 5dd6022b0d
commit c6f2d5530d

View File

@ -43,12 +43,13 @@ public class DataManagerAbstract {
}
}
/**
* Queue a task to be run asynchronously. <br>
* 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);
}
}