Tougher punishment will be handed out for any further offending linked to loyalist flag protests, a High Court judge has warned.
Mr Justice McCloskey gave notification to troublemakers that continued lawbreaking would be treated as an aggravating factor.
As he granted bail to a teenager accused of attacking police in Belfast, the judge's message included anyone charged with obstructing a public highway.
So far, 40 people have been arrested in connection with disorder surrounding the decision to restrict the flying of the Union flag at Belfast City Hall.
According to the PSNI, 28 of them have been charged with a range of offences, including rioting, disorderly behaviour, resisting arrest and assault on police.
Nearly 30 officers have been injured during outbreaks of violence across Northern Ireland.
One of those accused of involvement in the disorder is Johnathan McClelland.
The 18-year-old, of Tavanagh Street, Belfast, faces a charge of riotous behaviour over allegations that he threw bricks at officers and kicked a PSNI Landrover.
McClelland was bailed and is subject to a night-time curfew and electronic tagging.