From c501ebb35725defa4a8be67f32d45b5c8168d75c Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 30 Jul 2013 14:47:11 -0400 Subject: [PATCH] Clean up after our experience commands. Fixes #1324 --- .../nossr50/commands/experience/ExperienceCommand.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; + } }