Paris Hilton just pled guilty to two misdemeanors in her Las Vegas cocaine possession case -- in a move that will keep her out of the slammer ... if she can stay out of trouble.
Paris just fessed up to misdemeanor drug possession and obstructing an officer -- and in exchange she must pay $2,000 in fines, complete 200 hours of community service and complete an "intensive" substance abuse program. She will also be on probation for one year.
The judge informed Paris that she has been given a one year suspended sentence -- which means if she is arrested for anything other than a minor traffic violation, she will spend 1 year behind bars.
The judge then warned Hilton, "The Clark County Detention Center is not the Waldorf Astoria."
Hilton was busted back on August 27 after cops found her in possession of less than a gram of cocaine.