A Missouri man referenced Oklahoma City bomber Timothy McVeigh as he allegedly plotted to blow up a courthouse, according to reports.

Joseph Lumetta, 35, of Warrenton, was charged last week for making threats to the Warren County Courthouse, where he has a trial set for later this month, KMOV reports.

“If things don’t go my way in court, people will pay,” Lumetta threatened, according to court documents obtained by the station. “It will be like Timothy McVeigh.”

McVeigh was executed in 2001 for killing 168 people and injuring more than 600 others when he detonated a truck bomb in front of the Alfred P. Murrah Federal Building in Oklahoma City on April 19, 1995.

Lumetta, who worked at a powder-coating business, also warned that he would kill anyone who tried to do “anything” to him, according to court documents.

Investigators from the Warren County Sheriff’s Office were notified of the ominous warnings against the courthouse and its staffers on Wednesday. Lumetta’s colleagues at Microfinish Company Inc. had earlier reported that he had been acting out of character of late and suspected he was using company tools to covertly build something, KSDK-TV reported.

Police later found a metal cylinder at the business with welded end caps “consistent with the shell of a pipe bomb,” according to a probable cause statement obtained by the St. Louis Post-Dispatch.

It’s unclear exactly how Lumetta allegedly relayed the threats, but investigators believe the statements were in reference to his scheduled Feb. 27 appearance at the courthouse on charges that he robbed a bank in April 2016, the newspaper reported.

Cops also found a 10-pound bag of fertilizer in Lumetta’s bedroom closet during a search of his home, court documents show.