He told Makaui: "While this was happening, you walked up behind the victim and king-hit him, knocking him unconscious."
Judge Winter said Makaui, who won the club's under-20s award for "most consistent" this year, had received a life ban from rugby league.
"When you lost your cool and struck the victim, you not only hurt him but you hurt the sport that you have so much passion for."
He said he was glad that the touch judge had not given up on the sport despite being concussed.
"He, like many others, takes time out each week to ensure your rugby league games are properly controlled. He was knocked unconscious."
Judge Winter started with a term of two years in prison but took time off for Makaui's early guilty plea, remorse and his youth.
He came to a sentence of four months' community detention but added 300 hours' community work.
"The reason for that is when you attacked the victim, you also attacked the community," Judge Winter said.
The touch judge, Gordon Shaw, watched the court proceedings yesterday and afterwards said he had been refereeing senior league matches for the past four years. Asked if he would continue his volunteer work, Mr Shaw said he won't quit.
"I won't give the satisfaction to the perpetrator ... I'm still in the game and I'll still be there next year."
Auckland Rugby League chief Pat Carthy said the organisation had a zero tolerance for violence against officials. The rugby league judiciary banned Makaui until 2038 but the Panthers have appealed.
Referee abuse
Football: Former international Tama Fasavalu sentenced to nine months' home detention for assaulting a referee during an Anzac Day match in Auckland. He pleaded guilty to wounding with intent to injure.
Rugby Union: Falefiaoalii Faalolo, 50, allegedly ran on to the field and grabbed the throat of a referee during a match.