(CNN) -- A US federal judge threatened to keep ships from Carnival's cruise lines out of American ports as punishment for the company's possible violations of the terms of its probation.
Carnival has been on probation as part of a 2017 settlement in which it agreed to pay $40 million for discarding oil illegally in the ocean from Princess Cruises ships and not telling the truth about it to US authorities. Princess Cruises is owned by Carnival.
On Wednesday, US District Judge Patricia Seitz said she'll decide in a hearing in June what action, if any, to take against the cruise line.
Carnival started its five-year probation period in 2017 and agreed to inspections by third party auditors.
According to court filings, reported by the Miami Herald , the cruise line "sought to avoid unfavorable findings by preparing ships in advance of court-ordered audits, falsified records, dumped plastic garbage into the ocean and illegally discharged gray water into Glacier Bay National Park in Alaska."
In a statement to CNN, Carnival spokesman Roger Frizzell said the company had heard the judge's concerns.
"We ... will do our utmost to ensure we meet all expectations ... and continue to strive to be best in class on environmental compliance," he said. "Our environmental responsibility has been and remains a top priority for the company. Our aspiration is to leave the places we touch even better than when we first arrived. This is in the best interest of our guests, our company and the oceans upon which we travel. We look forward to clarifying any issues and demonstrating our commitment."
™ & © 2019 Cable News Network, Inc., a Time Warner Company. All rights reserved.