He also admitted to causing damage to the building by breaking its windows sometime between the end of July and Aug. 4. The burglary charge was dropped.

Magistrate Deborah Domine said the teen will be released from the juvenile detention center and placed on probation with electronic monitoring. He was ordered to have no contact with the other defendants involved in the burglary and fire, and to delete his Facebook account and any other social media.

He was also ordered to participate in the victim-offender reconciliation program, an addictions assessment and to complete 100 hours of community service.

“This will be your way of showing you have something to give,” Domine said. “You took a building and you took away the trust in kids in some way.”

A third teenager facing arson and burglary charges in the case will appear in court for his initial hearing Thursday morning.

Because they were charged as juveniles, the names of the teenagers have not been released.