A man has been sentenced to up to 20 years in prison after being convicted on drug trafficking charges.