PAW PAW (AP) — 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.

READ MORE: Tenants Fed Up Over No Heat & Hot Water At The Sapphire Apartments, Management Responds

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.

READ MORE: Oxford School Superintendent Addresses Claims Related To High School Shooting

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.

MORE NEWS: Detroit Man Charged After Setting Pregnant Girlfriend On Fire

© 2018 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.