MANCHESTER — A man who told law enforcement officers he "was doing God's work" when he was busted this summer with more than 1,000 counterfeit drugs during the Bonnaroo Music and Arts Festival has admitted to the crime and been sentenced to jail time.

David E. Brady, 45, who was arrested less than 24 hours into the four-day festival in Manchester, Tenn., in connection to his self-proclaimed divine calling, pleaded guilty during a hearing before General Sessions Judge Jere Ledsinger to one count of attempting to sell counterfeit drugs.

► More:Busted at Bonnaroo: More than 300 arrested, cited at 4-day festival

Following the plea inside the Coffee County Justice Center, Ledsinger immediately sentenced Brady to a year in jail.

Coffee County Sheriff's Department spokesman Lucky Knott said Brady was sitting under a tent on festival grounds June 7 when deputies saw him with items that appeared to be narcotics.

When deputies approached Brady, he tossed the items behind him.

When Brady stood up, they said, he had bag of mushrooms hanging from his waistband.

Authorities searched Brady and found 37 pills made to look as if they were molly — a synthetic drug that alters mood and perception — 22 bags of fake mushrooms, about 1,000 hits of fake acid, 20 bags made to look like cocaine and an incense stick made to look like black tar heroin.

► More:Over $30K of drugs found inside vehicle at Bonnaroo 2017

According to an arrest warrant, Brady told deputies that he was "doing God’s work by selling fake drugs."

Initially Brady had also been charged with possession of a controlled counterfeit substance and being a fugitive from justice, but those charges were dismissed under a plea deal reached June 19 between prosecutors and Brady's public defender.

On the day of Brady's arrest, authorities learned he was wanted in Franklin County, Ark., on a felony bench warrant after he failed to appear in court there on a charge of possession with intent to deliver or manufacture a counterfeit substance.

Brady remained jailed in Coffee County ontenn Tuesday, Knott said.

After he serves the remainder of his sentence in Tennessee, authorities said, he'll be extradited back to Arkansas to face his outstanding charge there.

Reach Natalie Alund at nalund@tennessean.com and follow her on Twitter @nataliealund.