浏览代码

Fixed bug where /addxp was not processessing level-ups for online players

Fixes #918
TfT_02 12 年之前
父节点
当前提交
6fd599bd31
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      Changelog.txt
  2. 1 0
      src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java

+ 1 - 0
Changelog.txt

@@ -10,6 +10,7 @@ Key:
 Version 1.4.05-dev
  + Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)
  = Fixed bug where /addxp was setting instead of adding experience
+ = Fixed bug where /addxp was not processessing level-ups for online players
  = Fixed bug which allowed players to share experience with nearby dead players
  = Fixed bug with ChimaeraWings not taking Wings from a players inventory properly
 

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

@@ -58,6 +58,7 @@ public abstract class ExperienceCommand implements CommandExecutor {
                 }
 
                 mcMMOPlayer = UserManager.getPlayer(args[0]);
+                player = mcMMOPlayer.getPlayer();
 
                 // If the mcMMOPlayer doesn't exist, create a temporary profile and check if it's present in the database. If it's not, abort the process.
                 if (mcMMOPlayer == null) {