Ok i am making 2d java game and i am writing a login system with accounts for it

The problem is because the game will need to be bought before played... what if the user cant connect to the...