Members of a violent Keighley gang have had injunctions served on them by a county court judge as police used civil law powers for the first time to try and calm tensions.

The two-year orders ban the five men from parts of the town and include conditions such as not having more than one passenger in a car, other than for work reasons, and not being together in public.

Injunctions served on Jamaati gang members yesterday at Bradford County Court also banned the men from having more than 150ml of flammable liquid outside their home.

His Honour Judge Gosnell warned the men, all from the Highfield area and in their late teens to early 20s, that any serious breach of the order could land them in prison.

Seven members of rival gang the Up Enders were due in court in the afternoon, so as not to meet the Jamaati members, for their injunctions to be served. But the hearing was adjourned as details of the orders could not be finalised.

They will appear before Leeds County Court on March 26 and are subject to interim orders until then.

It is the first time West Yorkshire Police has used powers under the Policing and Crime Act 2009 which allows officers to set specific conditions on those subject to injunctions.

Police sergeant Andy Simpson said forces in Liverpool and South Yorkshire had used the powers with encouraging results.

“What they found is that use of injunctions breaks up the cycle of gangs and quite a lot of members are quite thankful they’ve been stopped from participating with others and have stopped offending”.

He said the measure would also help stop up-and-coming gang members from emerging.

The orders follows 90 recorded violent crimes in Keighley since 2006, 40 of which were in 2012 and linked to the two gangs.

Acting for West Yorkshire Police, Colin Quinn told the court the orders were necessary to prevent the men from engaging in gang-related violence.

Judge Gosnell told two of the Jamaati members they could be in contempt of court if they breached the order.

He added: “I hope things calm down and we don’t need to address this issue again.”