Plainclothed police officers on patrol at Titchfield Park in Mansfield caught a drug dealer, a court was told.
The officers saw a group of people and suspected what was going on.
When approached Judd Birdsell (33), owned up to having amphetamine in his pocket, along with digital scales, £55 and two mobile phones.
The phones contained messages that appeared to be connected with drugs, said Jim Metcalf, prosecuting at Nottingham Crown Court.
The 202 grammes of amphetamine were estimated to be worth £2,000, although that figure was disputed by Birdsell’s barrister.
Birdsell, of Arundel Drive, Mansfield, admitted possession of the drug with intent to supply on 6th August last year and had been released only four months earlier from a year’s prson sentence for a similar offence.
In mitigation, it was said that he had taken steps to rid himself of his own addiction.
Judge Jonathan Teare said he had been considering an 18-month jail term, but would postpone sentencing for six months to see if Birdsell could keep out of further trouble.
“It appears you have taken huge steps to overcome your habit. I would like to encourage you in that,” the judge told him.