Thomas White, age 17, will be in the state of Missouri's juvenile care for the next three years, with the possibility of release beforehand.
A court hearing on Friday was to determine if White would either be kept in juvenile services, put in prison or released.
White has been in the state's juvenile care for the past year.
The case started in October 2006 when White, 13 years old at the time, fired a gun into the ceiling of Joplin's Memorial Middle School.
The gun then jammed and no one was hurt, but police say White threatened the school's principal.
White was arrested and put in solitary confinement for nearly two years while attorneys debated if he would be tried as a juvenile or an adult.
In 2009, White plead guilty and was put in a juvenile services program.
Thomas White's mother says he has made progress.
"He simply could not come to anybody and say what was going on - tell them the amounts of abuse he was enduring for years in school," says Norma White. "And now they've taught him to speak up, and communicate and talk with people."