Fix executing thread-unsafe methods in a different thread by using the
Bukkit scheduler.