Mr Wilson said that, when spoken to by police, Kingi stated the drugs were his.
"He said it was for personal use but didn't have a prescription," he said.
Defence lawyer Ian Hard told the court his client had not been before the courts for many years and was trying to break free of his addictions.
"He's a mature man, trying to make a better life for himself. He wants to get on with his life ... he has grown older and wiser," Mr Hard said.
He appealed to the court to give his client a fine.
"He deserves a fine. This offending is not as serious as his past drug offending."
Judge Broadmore told Kingi his past offending was "dreadful" but a mitigating feature was past offending dated back nearly seven years. He sentenced Kingi to 80 hours' community work.