He is not named in the book.
The Disney version released in 1950 may be the most memorable.
He hears several men run into the inn, where they discover the captain is dead and the sea chest has been opened.
Silver is unable to carry out his threat to shoot and drops the pistol in the water, attempting to push the boat off on his own.
Jim leaves no doubt that he would not have chosen to go back, or that — having been forced to accompany his mother — he would have taken a random number of coins and left immediately.
The captain seems greatly upset, demands rum, and says he must leave the inn.