A man has been sentenced to a dozen years in prison after pleading guilty in the shooting death of a man in Charleston.