Six-year prison term for weapons plea