Former NBA player Jose Ortiz has been sentenced to 45 days in jail in Puerto Rico for a probation violation involving community service.

Ortiz was accused of not serving all 600 hours of community service after pleading guilty to drug charges. A judge ordered Tuesday that Ortiz serve the remaining 278 hours after his release from jail. He has until May 2017.

Ortiz was arrested in June 2011 after federal agents seized 218 marijuana plants at his house.

The 6-foot-10 athlete is one of the best basketball players the U.S. territory has produced. He played two seasons with the Utah Jazz, the last in 1989-1990. He was on the Puerto Rican national team for more than 20 years and played in four Olympics.