A Chesterfield man was caught on camera when he stole a jar containing staff tips from a town centre bar.
The manager of the Spread Eagle, in Beetwell Street, noticed that the jar, which contained £60, was missing at 6pm on July 23.
He checked CCTV and saw that a man had entered the bar at 4pm with two others before stuffing the jar up his jumper and leaving.
“He didn’t recognise the thief but police did,” John Cooper, prosecuting, told town magistrates.
Leo Straker, 29, was arrested and initially claimed he was in Cornwall at the time of the offence.
He later confessed to stealing the cash and sharing it with a pal, spending his share on clothes at JD Sports.
Straker, of Welfare Avenue, Brampton, admitted theft.
He had a string of previous convictions for offences including burglary, theft and harassment.
His solictor, Kevin Tomlinson, said a friend pointed out the cash jar to him and he stupidly agreed to steal it off the bar counter.
Straker had been addicted to heroin and then methadone but he was now free of drugs after undergoing a treatment programme and a spell in a rehabilitation centre.
“He has two children and he is seeking to rebuild the relationship with his ex-partner,” said Mr Tomlinson.
Presiding magistrate David Sobczak told Straker: “It’s a real disappointment that you have slipped back into your old ways with this sneak theft.”
He imposed a one-year conditional discharge with £60 compensation and £85 costs.