A former University of Maryland student who posted comments threatening violence on the campus has pleaded guilty, according to the Prince George's County State's Attorney's Office.

Alexander Song pleaded guilty Tuesday to misuse of telephone facilities and disturbing the peace at a school or college. His sentencing date has not yet been determined.

Police have said they believe Song, who was a student at the College Park campus at the time, posted comments online in March that stated "I will be on a shooting rampage tomorrow on campus," "hopefully I kill enough people to make it to national news" and "stay away from the Mall tomorrow at 1:30."

The Associated Press reported that Song had told police that he had been under stress, and police didn't find any weapons in his dorm room or parents' home. He has since been banned from the campus.

As part of his guilty plea, Song will perform 200 hours of community service. A judge ruled that Song has to do this before he is sentenced, said John Erzen, a State's Attorney's Office spokesman.

Prosecutors will also recommend that Song be sentenced to three years of supervised probation and continue to report to Mental Health Court once a month, Erzen said. Song has been taken off home detention, but the judge gave Song a daily curfew of 9 p.m.