Fix sending the name and the UUID the wrong way around in the LoginSuccess packet, add Minecraft version check.