I am making something and I have the saving setup just like everything else, except for some reason, it is resetting when the player logs out.

Here is an example:
Code:
	if (barbCourse != 1) {
						sM("You receive no experience for repeating the obstacle.");
						return;
					}
					barbCourse = 2;
					addSkillXP(10000, 16);
As you are doing this, it will set barbCourse to 2 when told to do so, but when the player logs out, it resets. What may be causing this?