Fixed a possible bug

You should not access the bukkit api in an async thread.