A Lisburn judge has warned a man charged with possession of drugs that he must tackle his addiction issues as “your health is your wealth”.