An Upshur County man has been sentenced to 18 years in prison after pleading guilty to possession of methamphetamine with the intent to deliver.22 year old Corbin Patrick McBride of Gilmer entered his plea just before the jury was to be selected to hear his case.