MIAMI (AP) — Rapper Kodak Black pleaded guilty on Thursday to federal weapons charges stemming from his arrest just before a scheduled concert performance in May.

Black entered the change of plea in a Miami federal court. Prosecutors charged him with crimes including falsifying information on federal forms to buy four firearms from a Miami-area gun shop on two separate occasions.

Black, 22, was able to obtain three of the weapons: a 9 mm handgun, a .380-caliber handgun and a semi-automatic Mini Draco weapon. Authorities said one of the guns was found at the scene of a March shooting in Pompano Beach.

Black also faces drug, weapons and sexual assault charges in other states.

When U.S. District Judge Federico Moreno asked Black why he needed so many weapons, he shrugged and said he needed them for “protection.” In a previous hearing, his attorney, Bradford Cohen, said the rapper faced threats from gangs and other rivals.

Black is a Florida native who was born to Haitian American parents as Dieuson Octave and who now goes by the legal name of Bill Kapri.

He has been in federal custody since he was arrested during a Miami-area hip-hop festival in May that was marred by several violent incidents. Authorities are still investigating three unrelated shootings in the Miami area with possible connections to the festival, one of which involved a property owned by President Donald Trump.

Moreno previously denied Black’s request for bond, ruling that he was a danger to the community.

The rapper, known for the singles “ZeZe” and “Roll in Peace,” could face up to 20 years in prison and a $500,000 fine.

He is scheduled to be sentenced on Nov. 13.

Dame Dash suffers from a particularly biblical sort of curse. He turns into a pillar of salt any time he looks back on his partnership with JAY-Z. With people piling on Jiggaover his NFL deal, you know that Dash had to find a mic fast. 

In an interview with Adam22 of No Jumper, Dame addressed the rumor that JAY-Z snaked Jermaine Dupri to get a deal with the NFL. Both Funkmaster Flex and Brian-Michael Cox claimed that Jay talked Dupri out of working with the NFL, then turned around and secured a partnership for himself. Dash couldn't be less surprised.

"I mean, everybody knows JAY ain't shit," Dash said at the 29:00 mark. "If you ask anyone in the industry, it's a common knowledge that JAY ain't shit."

Dash explained that JAY has no motivators beyond money and claimed that he regularly stiffs small fries, knowing that they don't have a platform to push back.

"He's about the bag. We all know that. He's self-preserving. Period. It's just that the people he does it to don't have Beyoncé next to 'em," he said. "They don't have that kind of power, but this dude here, everyone's looking."