public static void onVillageChanged(String newVillage) {
        Coord coords = villageCoords.get(newVillage);
        if (coords == null)
            return;
        if (!newVillage.equals(lastVillage)) {
            if (newVillage.length() == 0) {
                lastVillage = null; // Leaving
            } else {
                lastVillage = newVillage; // Entering
                if (!JSBotUtils.inTheHouse()) {
                    myLastGlobalCoord = coords;
                    myLastGameCoord = JSBotUtils.MyCoord();
                    if (UI.instance.slenhud != null)
                        UI.instance.slenhud.error("Global coords handled: "
                                + newVillage
                                + myLastGlobalCoord.div(100).toString());
                }
            }
        }
    }