I’ve been on 2 cruises, Royal Caribbean out of Florida.
They run you through a metal detector similar to the airport.
Cruises I was on left from Fort Lauderdale, and the county sheriffs office operated inside and outside of the port.
I suspect Florida being a free state this would have resulted in a fine and maybe losing out on the cruise.
California is anyone’s guess. Somewhere in the fine print when you pay for the cruise is a dumb ass clause, meaning this gal lost her her refund.