Situation: Java vanilla server. Three players. Full-size map. One of the players sets their spawn to a bed. The bed breaks (for X reason), the player dies before they can set a new spawn point, and is sent to world spawn.
Twist! World spawn is a chamber under the world where the player appears above, landing on a pressure plate activating a command block to teleport them back to their PREVIOUSLY recorded spawn location. In this case, the noted bed that was destroyed.
Twist 2: Electric Twistaloo!! I'm trying to get the command to recognize WHICH player activates the plate and teleport them to their specific previously recorded spawn point.
Does MC keep a bed, which was been set as a spawn point, location, even after the bed has been broken?
If yes, where might a person find this data?
And more importantly, is there a way for a command to recognize WHICH specific player activates the command.
Thank you all in advance.