Gerran Cunanan, 32, will spend time in custody at the Lighthouse Recovery Center to be treated for his drug addiction.
He appeared in the District Court of Guam on Friday for his sentencing.
He will serve the next six months at the recovery center, followed by three years of supervised release.
In January, he pleaded guilty to being a drug user in possession of ammunition. He also admitted to using controlled substances, and failed multiple drug tests while on pretrial release.
"I really need treatment," Cunanan said to Chief Judge Frances Tydingco-Gatewood. "If I violate, just give me the max."
Tydingco-Gatewood responded, "I really need you to work hard at it. So don't burn me."
Federal prosecutors recommended he be sentenced to serve the maximum 14 to 16 months in prison before he is let out to receive treatment.
Assistant U.S. Attorney Belinda Alcantara argued Cunanan remains a danger to the community.
"The community is well aware of courts giving defendants a break," said Alcantara. "The community has said enough is enough."
Cunanan had spent the past four months and 21 days at the Department of Corrections federal detention facility in Hagåtña.
Tydingco-Gatewood told Cunanan if he has any more violations, "the court can put him back in prison for up to 10 years."
Cunanan will undergo "intensive drug treatment."
"Stay clean," she told him.