Prince Harry
Britain's Prince Harry attends the Walking with the Wounded South Pole Allied Challenge 2013 British team departure event at Trafalgar Square in London Nov. 14, 2013. Three teams of wounded service personnel from Britain, The United States of America and the Commonwealth will race 335 km to the South Pole in December. Reuters/Stefan Wermuth

Ashraf Islam, a British Muslim convert, was jailed for three years on Monday, after pleading guilty to threatening to kill Britain's Prince Harry, police reportedly said.

Islam, 31, was reportedly told by the judge that his plan had been “vague and unlikely to succeed,” but it still posed a danger to the public. According to police reports, Islam who was born Mark David Townley changed his name in 2010 after he converted to Islam.

He was reportedly arrested at Hounslow police station on May 23, 2013, where he told the police that he intended to kill Prince Harry the following day. According to reports, police searched the hotel room where he had been staying after he came to London from Thailand, but did not find any weapon.

Islam said that he had plotted to disarm a royal bodyguard and use the gun to kill Prince Harry and revealed that he intended to kill the prince because he “had blood on his hands.”

A document that was found on Islam’s laptop, which was seized from the hotel room, reportedly read: “Aim for the target. No civilians to be injured. Dress code is the biker look. Use low-calibre pistol at close range. Not to be viewed as Islamist extremist.”

Judge Richard McGregor-Johnson said, according to reports, that the investigators of the case found that Islam had been tracking the prince for a long time and knew his whereabouts and travel plans.

According to media reports, Islam’s defense lawyer told the court that he had been suffering from a personality disorder. Islam reportedly has previous convictions, including one for an attempted robbery.