Josh Hamilton pleaded guilty Tuesday to a misdemeanor in a case arising from an altercation with his teenage daughter, according to officials.

Hamilton, 40, pleaded guilty Tuesday to unlawful restraint under a plea deal that dismisses a 2020 felony indictment for injury to a child.

The former Texas Rangers star was sentenced to one year of deferred probation, fined him $500 and ordered him to pay court costs, do community service and attend parenting and anger management classes. Thomas ordered him not to consume alcohol, be subject to random urine drug tests and have no contact with the daughter he restrained. If he satisfies the probation's requirements, the charge will be dismissed.