Inspector John Deasy said gardaí had been called to Innishmore Square in Ballincollig, Co Cork, at 3.30am on Christmas Day 2014 due to a disturbance.
Gardaí arrived to find Alan Collins, 27, of 1 Innishmore Square drinking beer on the green.
Officers noticed many homes appeared to have lights on after residents were woken by the noise.
Collins had 44 previous convictions, the inspector said.
Solicitor Michael Quinlan said the accused had returned from England to serve a nine-month jail sentence imposed in his absence.
Judge Olann Kelleher said the accused could do 200 hours community service instead of three months in jail for his threatening behaviour on the night.
The accused complained he was working six days a week at the moment. Judge Kelleher said he could do the three months in jail instead.
Collins, however, said he would ‘stick’ with the community service.