Updated on October 26, 2018 10:58 PM EDT
NEW YORK – Rapper Tekashi69 received four years of probation on Friday in the wake of an arrest in 2015 accused of using a child in a sexual performance. On Friday night, police said a bodyguard shot a member of Hernandez's entourage in front of a restaurant in Manhattan.
The 22-year-old rapper, whose real name is Daniel Hernandez, must complete 1,000 hours of community service.
Judge Felicia A. Mennin handed down the sentence on Friday and ordered Hernandez to refrain from contact with the gang members and should not be arrested during the trial period. If you are in violation of the plea agreement, you could face 1 to 4 years in prison.
In May 2015, Hernandez was arrested after a video of him engaging in sexual acts with a girl at a party in Harlem. I was 18 at that time.
In October, he pleaded guilty to a charge of using a child in a sexual performance. He took a plea agreement that required him to obtain his GED and complete the mental health treatment for 2 years.
The agreement also prohibits Hernandez from posting on his social media accounts any sexually explicit images of women or children and any image of violence against women or children.
A request for comments from attorneys representing Hernandez was not immediately returned.
Just before 6 p.m. On Friday, a shooting occurred in front of Philippe Chow on the Upper East Side. Police said the victim was part of a group trying to enter the restaurant with Hernandez.
Deputy Inspector Kathleen Walsh said a private security guard fired a licensed gun at a man who had hit him with a chair. The injured man was hospitalized with non-fatal injuries.
Hernandez's attorney, Lance Lazzaro, says his client was not present during the shooting.
Justin Carissimo of CBS News contributed to this report.
© 2018 CBS Interactive Inc. All rights reserved. This material can not be published, disseminated, rewritten or redistributed. The Associated Press contributed to this report.