How to transfer player data for a Minecraft server
You would find their playerdata file, in the server folder/playerdata, and change their latest file to their new UUID. You could also use a plugin or mod that allows you to access their inventory in game, and you could move the invenotory manually this way.