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

Fixes #918
This commit is contained in:
TfT_02 2013-04-01 22:54:36 +02:00
parent afd706bed8
commit 6fd599bd31
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Key:
Version 1.4.05-dev Version 1.4.05-dev
+ Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default) + 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 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 which allowed players to share experience with nearby dead players
= Fixed bug with ChimaeraWings not taking Wings from a players inventory properly = Fixed bug with ChimaeraWings not taking Wings from a players inventory properly

View File

@ -58,6 +58,7 @@ public abstract class ExperienceCommand implements CommandExecutor {
} }
mcMMOPlayer = UserManager.getPlayer(args[0]); 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 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) { if (mcMMOPlayer == null) {