An Oxford teen charged with two counts of attempted murder in connection with a 2015 shooting at a Jacksonville McDonald’s pleaded guilty on Friday to both counts, according to court records filed on Monday.

Mason was denied youthful offender status by Circuit Judge Bud Turner last month and the case was set to go to trial in April, according to court records. Mason entered his guilty plea on Friday but the details of the sentence were not finalized until Monday, according to those records.

Mason was sentenced to a total of 40 years for the two charges but will serve 10 of those confined by the Department of Corrections, according to the sentencing order. He was granted 445 days of jail credit and the remainder of his 30-year sentence will be served on state probation, according to that order.

Efforts to reach prosecutors or Mason’s attorney Mike LaPlante on Monday were unsuccessful.

​Staff writer Kirsten Fiscus: 256-235-3563. On Twitter @kfiscus_star.