Captain Jack Sparrow Gun
This is one of many hard rubber guns made for filming of the pirate films, more than likely this would be used for water scenes, stunts, and comfort to the actor.