Two men appeared at Barnsley Magistrates’ Court on Friday morning charged with two robberies in Goldthorpe.
The alleged incident happened at a property on Main Street at about 8pm on February 22.
A 19-year-old, of no fixed abode but from the Thurnscoe area, is also charged with possession of a firearm.
The other man is a 23-year-old, again of no fixed abode, but from the Goldthorpe area.
A 17-year-old from Barnsley is on police bail after being arrested on suspicion of aggravated burglary in connection with the same incident.