The pirate set up a cannon on the deck of his ship.