"This happened more often than not..."
Yeah, a mob of irate fellows in shiny white plastic show up at the docking-bay gates and start throwing blaster-fire at you... Seems to happen on just about any planet, in my RPG experience.
That sounds exactly right... When I ran Traveller long ago, one player got upset when he was told by spaceport customs that he wasn't allowed to take his favourite fusion cannon, gauss rifle, and combat armour with him when he wanted to go out on the town for some drinks.
...I didn't tell him that news had reached the spaceport about a previous run ashore he'd had on a world some distance away... which had ended up turning the port town into a cinder. He spent the whole afternoon in a sulk because he couldn't run wild blowing stuff up.