Only paying for an account: Is it allowed?

Solution 1:

I think you're trying to use a loophole where none exists - upon starting up Minecraft, your friend will need to log in to their account, and Minecraft: Java Edition will need to be purchased on said account in order for them to start playing the game, so there's no actual money saved.