Clean up after our experience commands. Fixes #1324

This commit is contained in:
GJ 2013-07-30 14:47:11 -04:00
parent 15e0570a8c
commit c501ebb357

View File

@ -52,7 +52,7 @@ public abstract class ExperienceCommand implements TabExecutor {
profile = mcMMOPlayer.getProfile();
editValues();
allSkills = false;
cleanUp();
return true;
case 3:
@ -85,7 +85,7 @@ public abstract class ExperienceCommand implements TabExecutor {
}
handleSenderMessage(sender, args[0]);
allSkills = false;
cleanUp();
return true;
default:
@ -169,4 +169,9 @@ public abstract class ExperienceCommand implements TabExecutor {
}
}
}
private void cleanUp() {
allSkills = false;
player = null;
}
}