Permalink
Browse files

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

…yers

Fixes #918
  • Loading branch information...
1 parent afd706b commit 6fd599bd3112de031440d05197fdb6129fbe3cbc @TfT-02 TfT-02 committed Apr 1, 2013
Showing with 2 additions and 0 deletions.
  1. +1 −0 Changelog.txt
  2. +1 −0 src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java
View
1 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
View
1 src/main/java/com/gmail/nossr50/commands/experience/ExperienceCommand.java
@@ -58,6 +58,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
}
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) {

1 comment on commit 6fd599b

@TfT-02
mcMMO Development member

Erm.. yeah
processing*

Please sign in to comment.