Rapper Gucci Mane won't be leaving prison anytime soon. On Wednesday (Aug. 20), the Atlanta rhymer was sentenced to three years in prison after pleading guilty to a firearm charge.

La Flare (real name Radric Davis) has been incarcerated since September 2013, which leaves him with 28 months remaining on his sentence. Had he gone to trial, he could have been sentenced to up to 10 years in prison.

According to the Atlanta Journal-Constitution, attorneys for the rapper asked U.S. District Judge Steve Jones to recommend that Mane be enrolled in a rehab facility on the West Coast so he can stay away from negative influences in Atlanta.

"He understands he has some work ahead of him and his goal is to bring resolution to this case and get back to performing,” said Drew Findling, Mane's attorney. “He doesn’t want anything to distract him. He wants to do anything to get back to the workplace and the workplace is the stage.”

Once Mane is released from prison he has to serve three years of probation and will not be allowed to travel for more than seven days unless he gets permission from his probation officer.

Judge Jones also lectured Mane about putting his life back together again and staying out of trouble.

"You’re a young man, You have a full life before you. I see a lot of famous people move outside the line,” said Jones. He then added if the rapper continues to break the law, “you’re going to wake up one morning broke. You’re going to wake up one morning back in prison.”

Mane's legal case stems from a September 2014 incident in which he was busted with a Taurus 45-caliber handgun. Then, a couple of days later, he was arrested after police stopped him and discovered a Glock 40-caliber handgun and bullets in his possession.

Back at the hearing, Mane only spoke once to the judge. "I thank you and I definitely don’t want to withdraw my plea,” he said.

Despite being incarcerated, the 'Lemonade' rapper continues to drop new music. But at this point, Mane won't be able to officially drop an album until 2016.