DENVER (AP) — A 22-year-old man has been sentenced to 18 months in federal prison for writing a false bomb threat while onboard a flight traveling from San Diego to Denver in 2017.

Cameron Korth was sentenced on Friday after pleading guilty in April to providing false information and threats. He also will be on supervised release for three years after his prison sentence.

Prosecutors dismissed another charge as part of the plea agreement.

According to court records, Korth told flight attendants on the Jan. 16, 2017 United Airlines flight that he found a written bomb threat in the plane's bathroom.

The plane landed on an isolated runway at Denver International Airport. All passengers were removed, and authorities found no explosives onboard.

During questioning, Korth eventually told authorities that he wrote the note.