The pilot of a plane that crashed on election day, injuring UKIP leader Nigel Farage, was given a two-year community order today after a court heard his threats to kill the politician were "a cry for help".

Justin Adams, 46, of Faringdon, was flying a light aircraft that was towing an election banner on May 6 last year when it nose-dived to the ground.

Both men suffered "significant injuries" and were treated in hospital, Oxford Crown Court heard.

Adams, a self-employed commercial pilot, lost work in the six months it took for the Civil Aviation Authority (CAA) investigation into the crash to take place. He was unable to have his plane repaired, as insurers would not pay out until the investigation had been completed.

As well as being angry about the length of time the investigation took, Adams also felt resentment towards Mr Farage, judge Mr Justice Saunders said. The pilot believed he had lost out on an opportunity to sell his story, having been advised not to speak to the press.

He made threats to kill both CAA crash investigator Martin James and Mr Farage, saying he had a gun and could "shoot to kill", the judge told the court. Adams was found guilty of five counts of making threats to kill by a jury in April.

Mr Justice Saunders said Adams was suffering from "a depressive order of moderate severity" which had been triggered by the crash.

The judge told the court: "He was also drinking to excess, which undoubtedly impaired his judgment and affected his behaviour.

"I also accept, having heard the evidence in the trial, that to an extent these offences were a cry for help as well as an expression of anger and resentment at the events that had happened."

But he added: "There is nothing that could have justified these offences, and they were serious. Mr Adams made persistent threats over a three-day period that he was going to kill Martin James and Nigel Farage."

Adams has been in custody for six months before today's sentencing. As part of the community order, he will be supervised for two years.

The judge told him: "This has to be an end to all of these matters. Do you understand?".

Adams, dressed in a smart dark blue suit and striped tie, replied: "Yes."