The fourth person charged with threatening to bomb an Islamic community has pleaded guilty to criminal possession of a weapon in a terroristic crime.

Nicholas Pheilshifter was 16 when prosecutors say he and three other men plotted to set off explosives at the downstate community of Islamberg.

His case was handled in Youth Part court because of his age at the time of the plot and under New York's "Raise the Age" law.

The Monroe County district attorney says under the terms of his plea, Pheilshifter will serve time in a youth facility until he turns 18, then will serve seven years in state prison and five years of post-release supervision. 

He's scheduled to be sentenced at the end of next month.

The other three suspects all pleaded guilty to charges connected to the plot. They'll be sentenced early next month.