NEW YORK - The former flight attendant whose meltdown landed him in court in New York City has pleaded guilty to attempted criminal mischief and will undergo counselling.

Steven Slater appeared in court Tuesday. He will undergo at least a year of counselling and substance-abuse treatment.

He will get no jail time and a year of probation if he completes the program to the judge's satisfaction. If he does not, he will get one to three years in jail.

His dramatic escape occurred Aug. 9 aboard a JetBlue Airways Corp. flight from Pittsburgh that had just landed at Kennedy International Airport. Officials say Slater got on the loudspeaker, cursed at passengers, then slid down the plane's emergency chute with a beer.

He resigned from JetBlue.