CHICAGO (AP) — A former Illinois National Guard soldier who pleaded guilty to terrorism-related charges has been sentenced to 30 years in prison.

Hasan Edmonds was sentenced Tuesday in U.S. District Court in Chicago. Earlier, his cousin, 30-year-old Jonas Edmonds, received a 21-year prison sentence.

Prosecutors say the 23-year-old Hasan Edmonds planned to travel to the Middle East to join Islamic State fighters. They claimed Jonas Edmonds planned to wear his cousin’s uniform as a disguise during an attack at an armory southwest of Chicago.

Hasan Edmonds pleaded guilty last year to conspiring to provide material support to a foreign terrorist organization.

In court Tuesday, Jonas Edmonds said he dropped Hasan Edmonds at the airport to travel to the Middle East to join Islamic State fighters. But Jonas Edmonds denied he would have attacked the military armory in Joliet.