A Milton, Ky., man pleaded guilty to multiple counts of attempted theft by extortion and terroristic threatening just days before his case was set to go to trial.

Logan Robert Price, 21, pleaded guilty to 12 counts of terroristic threatening in the third degree - a Class A misdemeanor - and six counts of attempted theft by extortion - a Class B misdemeanor - in Trimble County District Court on Tuesday.

Price entered an open plea, Trimble County District Judge Jerry Crosby said, which means sentence lengths are at the court's discretion.

Each Class A misdemeanor could carry a term of up to 12 months in prison and a $500 fine, while each Class B misdemeanor has a maximum of up to 90 days in jail and a $250 fine for each count.

Price is expected to be sentenced Thursday at 9 a.m.

Price was arrested June 30, 2013, after he sent a series of threatening text messages demanding a car, then cash and other items from a family that was raising money for their child's medical expenses. Price threatened to harm the child if his demands weren't met.

After the family notified authorities, the Trimble County Sheriff's Office set up a mock deal with Price in the local Dollar General store parking lot, where he was taken into custody.

Price told police at the time that he needed money after his mother cut him off for failing a college class, according to court documents. He planned to use the money to purchase a car and an engagement ring.

A jury trial was expected to begin Thursday in the case.

Instead, Crosby plans to hold a sentencing hearing Thursday where testimony and victims' statements may be heard.