Skip to content
This repository
Browse code

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

…yers

Fixes #918
  • Loading branch information...
commit 6fd599bd3112de031440d05197fdb6129fbe3cbc 1 parent afd706b
TfT_02 TfT-02 authored
1  Changelog.txt
@@ -10,6 +10,7 @@ Key:
10 10 Version 1.4.05-dev
11 11 + Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)
12 12 = Fixed bug where /addxp was setting instead of adding experience
  13 + = Fixed bug where /addxp was not processessing level-ups for online players
13 14 = Fixed bug which allowed players to share experience with nearby dead players
14 15 = Fixed bug with ChimaeraWings not taking Wings from a players inventory properly
15 16
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
58 58 }
59 59
60 60 mcMMOPlayer = UserManager.getPlayer(args[0]);
  61 + player = mcMMOPlayer.getPlayer();
61 62
62 63 // 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.
63 64 if (mcMMOPlayer == null) {

1 comment on commit 6fd599b

TfT_02
Collaborator

Erm.. yeah
processing*

Please sign in to comment.
Something went wrong with that request. Please try again.