changed the thread to a bukkit runnable