Afroman pled guilty to assault but will face no jail time for punching a female fan in the face ... at least for now.
The Grammy-nominated rapper will have to take anger management classes and drug tests as part of his probation ... if he screws up, he'll have to do six months in jail.
Haley Byrd, the woman he hit during a Biloxi concert after she crashed the stage, was present in court. She suffered a concussion and plans to sue promoters of the show.
Afroman's rep previously claimed he was acting in self-defense and blamed the incident on lack of security.