A Newtownabbey man has been given a suspended prison sentence by a Lisburn judge after pleading guilty to drugs offences.