Adapted some code from Bukkit Essentials to be a bit more careful about
where the user ends up.