Ex-NBA player sentenced to eight years in prison