Server errors

Hey guys it wasnt letting most people join a mulitplayer server ( neither me ) But im on now what i done is went to the windows button and typed '%appdata% Then delete the .minecraftThen join the game again so it comes back then right click it and click restore previous versions and click one. Then do restore. Then launch the game again.