Rapper Tekashi 6ix9ine will only receive four years probation for a 2015 child sex performance case, a New York judge ruled Friday. 

CBS News reports the 22-year-old rapper, born Daniel Hernandez, will have to complete 1,000 hours of community service as part of his sentence.

Under the plea agreement, Hernandez cannot post any sexually explicit images of women or children on his social media. 

The case stems from a 2015 video capturing then-18-year-old Hernandez engaging in sexual acts with a 13-year-old girl. In October of 2015, he pleaded guilty and had to seek mental treatment for two years and obtain a GED as part of the sentence.

According to Page Six, gunfire erupted outside of Manhattan restaurant Philippe Chow where the rapper was celebrating his parole Friday evening. 

Zachary Bunce, 33, of Wyandanch, Long Island, and Faheem Walter, 29, of Brooklyn were turned away by the rapper's security guards. Reports state one threw a chair at a guard. The guard took out a handgun and fired at Walter, striking him in the abdomen. He is expected to recover.  

Now, check these out: 

EXCLUSIVE: Rep. Maxine Waters Responds To Being Targeted By Bomb Threats: 'I Ain’t Scared'

Vermont Student Group Wins Right To Fly Black Lives Matter Flag At High School Campus

Black Lawmakers And Community Take Action On The Influx Of Missing Teens In DC