Switched to bukkit API for distance calculations.