BATH — A 19-year-old Bath man has been sentenced to five years in prison for his role in the 2010 robbery that occurred at the Walgreens Pharmarcy in Bath.

District Attorney Geoffrey Rushlau said Anthony Creamer pleaded guilty to robbery and stealing drugs last September. He was sentenced last week in Sagadahoc County Superior Court by Justice Andrew Horton.

Horton ordered Creamer to serve 15 months, with the remaining 45 months suspended. Upon his release from prison, Creamer will be placed on probation for three years.

Rushlau said Creamer entered Walgreens on Feb. 15, told employees he had a gun, and then demanded oxycontin. His brother, Michael Creamer, drove the getaway car.

Michael Creamer, 21, was later arrested in connection with a separate oxycontin robbery at a Hannaford pharmacy in York County. He was sentenced in December.

“These two serious crimes, like so many others in our state, were driven by the addicts’ desperate need for the powerful narcotic, oxycontin,” Rushlau said.