A Bibb County man has been sentenced to 20 years after pleading guilty to cocaine distribution and firearm charges.