The 22-year-old, the grandson of Robert F. Kennedy and a former boyfriend of Taylor Swift, pleaded guilty to a charge of disorderly conduct through his lawyer on Wednesday, reports People.

A court spokesperson told the magazine that the environmental activist received a six-month deferred sentence. The plea will be taken off his record if he can stay out of trouble during that time. If not he could face actual jail time.

He is also required to pay a $500 fine, write a letter of apology to his victim, and stay away from drugs and alcohol over the next six months as a condition of the plea.

Kennedy was arrested early the morning of Dec. 28 following a fight with another man outside of Bootsy Bellows nightclub. When police tried to break up the fight, he ended up tussling with an officer causing them to both fall into a snow bank.