A 29-year-old man has been sentenced to 28 years in prison for using a BB gun to rob a Pizza Hut restaurant in Mount Pleasant more than two years ago.

A jury on Friday convicted Kenneth Oredell Murray, of Linnen Lane near Mount Pleasant, of armed robbery. Solicitor Scarlett Wilson announced the verdict in a statement Monday.

Murray had faced between 10 and 30 years behind bars; Circuit Judge Knox McMahon handed down the sentence.

Oredell had previous convictions for third-degree criminal sexual conduct, cocaine distribution and malicious injury to personal property. He had served a six-year sentence as a juvenile, the solicitor said.

Murray also faces charges of armed robbery and kidnapping in a 2011 stick-up at a Piggly Wiggly store on Riviera Drive in Mount Pleasant.

During the trial last week, Assistant Solicitor Alexander Ziegler presented a case that Murray jumped over the counter of the Pizza Hut, at 2161 U.S. Highway 17, and pointed a BB pistol at three employees.

The restaurant was closed at the time.

With help from an accomplice, Murray took money from the cash register and left the store, Ziegler said.

Ten days later, Ziegler said, Murray confessed to the crime. Authorities also found the pistol in his home.

The accomplice, 35-year-old Cleveland Clarence Major of Boston Grill Road near Mount Pleasant, pleaded guilty to armed robbery in June and was sentenced to 10 years in prison, court records show.

Before he was sentenced, Major was charged with rioting at Charleston County’s jail after he acknowledged fighting with three other inmates who stole his belongings.

Reach Andrew Knapp at 937-5414 or twitter.com/offlede.