A man said he assaulted the policeman who was trying to handcuff him because it was annoying, a court heard.
Andrew Michael Dominic Riordan, 20, of Bailey Grove, Buxton, admitted kicking PC Daniel Brooks in the groin and putting him in a headlock while he was trying to arrest him, on July 13.
He also pleaded guilty to resisting a constable and criminal damage at a hearing at High Peak Magistrates Court on Monday.
John Cooper, prosecuting, told the court that at about 11.50pm on 12 July, Riordan, who was sat on Terrace Road drinking with friends, threw a bottle at a passing police car, which missed and smashed on the road.
PC Brooks, who was in the car, saw what happened and approached the group telling the defendant that he would be arresting him for attempting to damage a vehicle.
Magistrates heard Riordan refused to let the constable handcuff him, keeping his body tense, swearing and shouting: “I’m not getting arrested.”
PC Brooks said in his statement that during the struggle, Riordan put him in a headlock, and once arrested, refused to get out the van at the police station, kicking the policeman in the groin.
Mr Cooper said the criminal damage occurred in the police cell, when the defendant was put in a police safety suit, which he subsequently chewed and scratched.
When interviewed, Riordan told police his sister had thrown the bottle and that he assaulted PC Brooks because he wanted to hurt him as he was annoying him.
The court heard he had two previous convictions, one for theft in 2008 and one for obstructing a constable in the execution of his duty in 2011.
Kirsten Collins, defending, said: “On July 12, he was on a night out with friends. He’s not a heavy drinker usually, but on that night, he was very intoxicated.
“He accepts that he threw the bottle, assaulted PC Brooks and damaged the safety suit. It’s behaviour he regrets.”
She told magistrates that he was not in the receipt of any income or benefits and lived at home with his mum and three younger sisters.
Chairman of the Bench Pam Ashton said: “This was an unpleasant attack on a police officer late at night who was doing his duty protecting the general public.”
Riordan was sentenced to a 18-month supervision order, a three-month curfew and 120 hours of unpaid work.
He was also ordered to pay £100 compensation to PC Brooks and £60 compensation to the police for damaging the safety suit.