all ships coming into or leaving the harbor were required to have one aboard , ostensibly to prevent collisions and check for smuggled goods , but everyone knew they got a cut of the smuggler 's profits .