RICHMOND, Va. (AP) — A Virginia man has been sentenced to 17 and a half years in federal prison for plotting to shoot up or bomb synagogues and black churches.

Robert C. Doyle was sentenced Wednesday in U.S. District Court in Richmond. He pleaded guilty in February to conspiracy and firearms charges.

Prosecutors say Doyle and a conspirator, 33-year-old Ronald Chaney, are white supremacists who bought guns and explosives from undercover agents. Authorities say a third man, 31-year-old Charles Halderman, joined them in a scheme to rob a Richmond-area silver and coin dealer and use the money to finance a race war.

Doyle said in court that he regretted having “reckless conversations,” which he said have been exaggerated.

Chaney and Halderman also pleaded guilty but have not yet been sentenced.The Associated Press contributed to this report.