PALM BEACH COUNTY, Fla. (WFLA) — Palm Beach County commissioners approved a change to the county’s parks and recreation ordinance that bans adults without children from play areas meant for kids.

According to a WPTV report, Palm Beach County Mayor Robert Weinroth announced the new ordinance earlier this week.

Weinroth said the new regulation prohibits anyone 18 or older from entering or remaining in a designated children’s play area unless that person is supervising or accompanying children 12 or younger.

“Public safety is always a priority, especially when it comes to our children, so I am pleased with this added layer of safety at county playgrounds,” Weinroth said.

County commissioners said anyone caught breaking the law would be asked to leave. If they refuse, the Palm Beach County Sheriff’s Office would get involved.

WPTV spoke with several parents on Thursday, and most welcomed the change, saying the extra emphasis on safety put their minds at ease.

“It seems pretty logical if you don’t have a kid,” father John Dipalermo said. “I don’t see the need to hang out at an area where kids are playing. I think most parents would be on board with that.”

The new ordinance is expected to go into effect in the coming weeks.