In a San Diego court, Peter Robbins was sentenced to a year in jail, and then he was immediately released to a residential drug treatment facility to complete his sentence.
"Don't be a blockhead," Superior Court Judge Dwayne Moring told Robbins, borrowing a line from Charlie Brown's friend Lucy.
The 56-year-old choked back tears as he told the judge that treatment for alcoholism and drug addiction would be a first step toward becoming "the fun-loving person" he was. He also said he loved his former girlfriend and he apologized to her and her plastic surgeon "for any fear that I caused."
Robbins has been in jail since he was arrested in January. He pleaded guilty in April. He was sentenced to five years' probation and must undergo treatment for domestic violence and stalking. He was ordered to pay the plastic surgeon $15,082 in restitution and to avoid contacting her for 10 years.
If Robbins violates his probation, he could get four years in prison.
Prosecutors have said Robbins called his ex-girlfriend as many as 37 times over 24 hours, threatening to kill her and her son if she didn't return his dog and car. He allegedly followed the plastic surgeon, calling her office so frequently that she moved to a hotel and hired an armed guard. Prosecutors said he demanded a refund for his ex-girlfriend's breast enhancement.
The plastic surgeon wrote to the judge that Robbins wrote a note on her office door, threatening to break her "in half."
Robbins starred as Charlie Brown in the 1965 debut "A Charlie Brown Christmas" and held the role in five other television specials, including "It's the Great Pumpkin, Charlie Brown" in 1966.
The former child actor was recently the voice of Charlie Brown for a version of the 1965 animated classic that was made for smartphones.
The Associated Press contributed to this report.