When Bruno Mars sings "Cuz you're amazing, just the way you are," does he mean it when he's sober, or high on cocaine?

Looks like Mars, aka Peter Hernandez, will need to stay clean for 12 months if he doesn't want to go to prison for his bad habit.

Earlier today, Bruno Mars pleaded guilty to possession of cocaine in a Las Vegas courthouse. The singer was arrested and charged with possession of the substance last September. He was arrested after a bathroom attendant at the Hard Rock Hotel and Casino reported that there was a man blowing cocaine in the bathroom.

The cocaine charges will be completely dismissed if Mars manages to stay out of trouble for the next 12 months. On top of this, Mars must also undergo eight hours of counseling, complete 200 hours of community service, and pay a fine of $2,000.

More From K-Fox 95.5