PINELLAS COUNTY, Fla. — A Kenneth City man is facing charges after he was arrested for threatening a mass shooting at a Steak 'n Shake he was recently fired from, according to arrest records.

After his arrest, 26-year-old Zachary Walls voluntarily surrendered an AR-15 rifle, multiple magazines and "many unspent cartridges" under a risk-protection order, the records show.

A risk-protection order, or RPO, is a petition that takes away an individual’s gun rights for one year. The orders are part of the Marjory Stoneman Douglas High School Public Safety Act, which was enacted on March 9, 2018.

RECOMMENDED: Risk-protection orders issued in Florida, by county

RPO's can only be filed by law enforcement officers or law enforcement agencies.

According to arrest records, Walls was recently fired from the Steak 'n Shake on Dr. Martin Luther King Jr. Street North in St. Petersburg.

Walls sent a text to a former co-worker that said, "I thought of just walking in there and killing everyone then shooting myself," the records show.

RECOMMENDED: Gun-seizure laws grow in popularity since Parkland shooting

Walls was arrested and charged with threatening communications or threats of mass shooting, which is a felony. His bond was set at $10,000.

Jail records show he was released on surety bond on Saturday around 12:30 p.m.