Kid Cudi pleaded guilty to misdemeanor drug possession Friday in a New York City court stemming from his June bust .

A spokeswoman with the Manhattan District Attorney's Office tells E! News that the 26-year-old hip-hopster, real name Scott Mescudi, copped to criminal possession of a controlled substance in the seventh degree and was sentenced to two days of community service.

He also must stay out of trouble for the next six months and show proof of his community service at a March hearing.

The Man on the Moon MC was collared back on June 11 after cops responded to a disturbance at a private home allegedly involving Cudi and an unidentified woman.