A 25-year-old man was caught with a knife in High Valleyfield following an altercation over a PlayStation console.

During an earlier incident in Dunfermline, Stephen Justice locked six police officers in a house.

Justice, formerly of Kinloss Court, High Valleyfield, now of Main Street, Lochgelly, appeared at Dunfermline Sheriff Court for sentencing and came close to a jail term.

He admitted that on May 17, at Kinloss Court, High Valleyfield, he was unlawfully in possession of a knife.

He also admitted that on December 8, 2020, at Urquhart Crescent, Dunfermline, he repeatedly shouted, swore, made threats of violence and acted aggressively to police officers.

Justice further admitted that at the same house, he detained six police officers within the premises against their will by locking the door and disposing of the key.

Depute fiscal Azrah Yousaf said the High Valleyfield incident involved police being called at around 9.30pm to a report of someone carrying a knife in the street.

When officers arrived, they found the knife in Justice’s car.

Defence solicitor Alexander Flett said: “There had been a dispute over a PlayStation 4. He had gone to the address and an altercation took place.

“Police had attended and saw him dropping the knife to the floor. His position is he took the knife from the person he had the altercation with and that it was not his.”

Sheriff Andrew Berry said he had been considering a jail sentence for the knife offence and that Justice’s version of events was “an unlikely scenario”.

However, he instead imposed a three-month restriction of liberty order and a community payback order with nine months of supervision.