diff --git a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java index 37b31f4be..56520bcc4 100644 --- a/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java @@ -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; + } }