public void unconquer_cmd() throws CivException {
    String conquerCiv = this.getNamedString(1, "conquered civ");

    Civilization civ = CivGlobal.getConqueredCiv(conquerCiv);
    if (civ == null) {
      civ = CivGlobal.getCiv(conquerCiv);
    }

    if (civ == null) {
      throw new CivException(
          CivSettings.localize.localizedString("var_adcmd_civ_NoCivByThatNane", conquerCiv));
    }

    civ.setConquered(false);
    CivGlobal.removeConqueredCiv(civ);
    CivGlobal.addCiv(civ);
    civ.save();

    CivMessage.sendSuccess(
        sender, CivSettings.localize.localizedString("adcmd_civ_unconquerSuccess"));
  }
  public void liberate_cmd() throws CivException {
    Civilization motherCiv = getNamedCiv(1);

    /* Liberate the civ. */
    for (Town t : CivGlobal.getTowns()) {
      if (t.getMotherCiv() == motherCiv) {
        t.changeCiv(motherCiv);
        t.setMotherCiv(null);
        t.save();
      }
    }

    motherCiv.setConquered(false);
    CivGlobal.removeConqueredCiv(motherCiv);
    CivGlobal.addCiv(motherCiv);
    motherCiv.save();
    CivMessage.sendSuccess(
        sender,
        CivSettings.localize.localizedString("adcmd_civ_liberateSuccess")
            + " "
            + motherCiv.getName());
  }