That is because at the time of his latest offending, Williams was on bail to be sentenced for wilful damage and burglary after an incident in June where he stole items from his former flat and urinated on a bed before leaving the property.
He has also pleaded guilty to possession of an offensive weapon and disorderly behaviour.
Judge Philip Crayton said it was in the interests of the community that Williams was handed a sentence that would allow him to address his anger issues.
"So that when you get into that situation again, you don't deal with it in a way that the police get called and you get arrested."
Williams was sentenced to six months of community detention, 120 hours of community work and 12 months' supervision.