6ix9ine Must Stay Away From Bloods & Do Community Service To Stay Out Of Prison

The rap star finally faced the music in court today for violating his plea agreement.

(AllHipHop News) Tekashi 6ix9ine avoided prison time in New York County Supreme Court today.

The Brooklyn rapper appeared in court with a huge entourage.

Prosecutors had been gunning for prison time for the rapper, who was accused of violating terms of his probation, resulting in a 2015 guilty plea for the use of a child in a sexual performance.

A judge gave the rapper mercy, even though prosecutors wanted him jailed for violating the terms of his plea agreement when he was arrested for an incident in Texas.

6ix9ine was also involved in a dust-up with a police officer while he was incarcerated for a minor traffic charge in New York.

The rap star was sentenced to four years probation and he must also complete 1,000 hours of community service.

One requirement is going to prove challenging: the rapper, who has built his career repping the Bloods, can not affiliate with any street gang.

Tekashi told the Judge he wants to stay out of trouble and be the "biggest star" he can be.