Paris Hilton has accepted a plea deal in connection with her arrest last month in Las Vegas, Nevada for cocaine possession, according to E! News.

Hilton pleaded guilty to misdemeanor drug possession and obstructing an officer, and she must complete a drug abuse program, pay a $2,000 fine and serve 200 hours of community service.

“We fashioned a resolution which would give us complete control over her future,” District Attorney David Roger says.

“If she does not toe the line and stay out of trouble, she will do one year in the Clark County Detention Center.”