A knifeman sparked a serious alert for the emergency services when he climbed on top of a former pub and threatened to kill himself.
Police negotiators were called after Matthew Tolson got onto the roof of the derelict Mexborough Arms pub, Whitwood, Castleford, after threatening to stab himself.
Allan Armbrister, prosecuting said members of the public contacted police at 7am on July 5 this year to reports that a man was attracting attention to himself.
Mr Armbrister said: “He said he was intending to commit suicide and he was shouting that he was going to stab himself and throw himself off the building.”Negotiators were called to the scene and persuaded Tolson to give himself up.
Tolson was interviewed after his arrested and told officers he had become upset after he fell out with his partner of six years.
He said he had initially intended to stab himself but couldn’t go through with it so wanted to jump off the building.
Mr Armbrister said Tolson was the subject to a suspended prison sentence for robbery at the time of the offence.
The robbery involved Tolson taking part in an attack on a man who was knocked to the ground and had £60 stolen.
His actions had also put him in breach of an anti social behaviour order (ASBO).
Tolson, of Fryston Road, Airedale, Castleford, pleaded guilty to two offences of possession on a bladed article and breach of an ASBO.
Michael Smith, mitigating, said Tolson’s offending was linked to drinking and he had taken step to address his problem. He said the robbery offence was two years ago and he had not been in trouble since then.
Judge Rodney Jameson, QC, gave Tolson a 12 month community order and 100 hours unpaid work.