public static Spawn getClosest(Player player, HashMap<String, Spawn> spawnList) {
        List<Spawn> list = new ArrayList<Spawn>(spawnList.values());
        if (list.isEmpty()) {
            return null;
        }
        
        Location loc = player.getLocation();
        Spawn spawn = null;
        int lastDist = -1;
        for (Spawn point : list) {
            //This should happen, but check just in case
            if (!point.getWorld().equals(player.getWorld())) {
                continue;
            }
            int newDist = distSq(loc, point);
            if (newDist < lastDist || lastDist < 0) {
                lastDist = newDist;
                spawn = point;
            }
        }
        return spawn;
    }