Kodak Black has pleaded guilty to federal weapons charges.

The 22-year-old rapper entered the plea at a hearing in Miami federal court on Thursday, reports ABC News. He originally had pleaded not guilty.

In May, Black was charged with crimes including making false statements on federal forms to purchase three firearms. Prosecutors say a weapon purchased by Black was found at the scene of the Pompano Beach shooting.

Black faces up to eight years in prison. A federal judge denied his request for bond saying he was “danger to the community” based on his lengthy criminal record.

He will remain in a federal detention center in Miami until his sentencing on Nov. 13.

Additionally, the “ZEZE” hitmaker also faces drug, weapons, and sexual assault charges in other states.