Kaynağa Gözat

Fixed experience commands affecting all skills. Fixes #951

GJ 12 yıl önce
ebeveyn
işleme
27e0a9d3b6

+ 1 - 0
Changelog.txt

@@ -16,6 +16,7 @@ Version 1.4.06-dev
  = Fixed displaying partial names when trying to use /ptp
  = Fixed wolves from Call of the Wild only having 8 health
  = Fixed bug where /party chat was not working
+ = Fixed bug where experience commands were adding levels to all skills when they shouldn't
  ! Changed Chimaera Wing's recipe result to use the ingredient Material
  ! Players will no longer pickup items to their hotbar while using Unarmed
  ! ExperienceAPI methods will now throw InvalidSkillException if the skill name passed in is invalid.

+ 2 - 0
src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java

@@ -51,6 +51,7 @@ public abstract class ExperienceCommand implements TabExecutor {
                 profile = mcMMOPlayer.getProfile();
 
                 editValues();
+                allSkills = false;
                 return true;
 
             case 3:
@@ -83,6 +84,7 @@ public abstract class ExperienceCommand implements TabExecutor {
                 }
 
                 handleSenderMessage(sender, args[0]);
+                allSkills = false;
                 return true;
 
             default: