Rap star Lil Wayne pleaded guilty to a class “D” violent felony of attempted criminal possession of a weapon in the second degree at a court hearing in Manhattan Thursday morning (Oct 22) stemming from a July 2007 arrest following a show in New York.

Police pulled over Wayne’s tour bus back in July 2007 on the night of his show at New York’s Beacon Theater, which also marked his first headlining concert in the city. After conducing a search of the bus, he and another man were subsequently arrested by NY police for criminal possession of a weapon (a .40-caliber semi-automatic) and criminal possession of marijuana, respectively.

At Thursday’s court hearing, he pleaded guilty to the charges and accepted a 1-year prison term, of which he’s only expected to serve about 8 months.

Lil Wayne (real name: Dwayne Carter) will officially be sentenced in February 2010, and at that point he must surrender himself to authorities and begin his prison sentence.