PAW PAW, Mich. — A 15-year-old student who was arrested in March after threatening violence at his school and the discovery of guns, ammunition and pipe bomb materials at his southwestern Michigan home has been ordered to participate in a mental health treatment program.

The boy learned his punishment Monday after earlier pleading guilty to explosives and firearms charges.

Van Buren County prosecutors say the teen will be treated at a secure, state-run facility for about a year. The court handled the case as a juvenile matter and the boy will be under supervision until he's 19.

Authorities have said the Paw Paw High School student's family alerted authorities to the threat and investigators believed he was planning to attack the school. Classes were canceled the day after his arrest as a precaution.