Lee Hickling, aged 32, of Selston Road, Jacksdale admitted possession of a controlled class A drug when he appeared before Mansfield magistrates.
He was handed a 12-month conditional discharge and ordered to pay a £26 surcharge.
An Underwood man has also appeared before Mansfield magistrates charged with obstructing or resisting a constable in execution of duty.
Jason Cornell, aged 49, of Alfreton Road, admitted the charige in court and was handed a six-month conditional discharge and ordere to pay £50 costs and a £26 surcharge.