The creator of a Texas company that provides blueprints to make untraceable 3D-printed guns has been sentenced to seven years of probation in a case involving sex with an underage girl.

Cody Wilson was sentenced Thursday after pleading guilty in August to injury to a child, The Associated Press reported.

ADVERTISEMENT

Prosecutors told the AP that they met with the victim and her parents before agreeing to lessen the charge from sexual assault.

Wilson will have to register as a sex offender, go through counseling and complete 475 community service hours, The Associated Press reported.

The company founder allegedly paid a 17-year-old girl $500 for sex after meeting her through a sugar daddy dating website, the AP reported.

After the affidavit accusing him of sexual assault was filed in Travis County, Texas, Wilson got on a plane to Taiwan, where he was arrested.

Previously, Wilson received attention when fighting to continue his business, Defense Distributed, that helped print 3D guns, saying he had First Amendment rights to do so. A judge had previously banned the company from uploading the printing plans.

The founder stepped down as director following his arrest in Taiwan. He will not be allowed to have a firearm during probation, The Associated Press reported.