Replace usages of threads with async bukkit tasks