A MAN'S trip to the town centre for a pint and a game of pool with a friend ended in his arrest hours later, Barnsley Magistrates' Court was told.
Jamie Simon Gough, 27, met someone who owed him money who threatened him, said Eric Bray, defending.
Mr Bray said the man wanted a fight in the street but Gough walked away.
Mr Bray added: "It was the only sensible thing Mr Gough did. Sometimes you go out for a pint and one pint leads to two, three, four or more. That's what happened on this occasion.
"He was on his way home, was still smarting about the encounter with the man who owed him money and took it out on the window of Kwikfit on Racecommon Road. He acted foolishly and stupidly."
Jayne Ormrod, prosecuting, said Gough, of Waterloo Road, Barnsley, went out at about 4.30pm and had eight pints of lager and cider.
She said Gough kicked in the Kwikfit window and was found by police on Shaw Lane with cut legs.
Gough admitted criminal damage. His case was adjourned until September 6 for a pre-sentence report and he was granted unconditional bail.