mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed bug which causes a NPE when trying to use /mcrefresh from the console
This commit is contained in:
parent
61dc77559b
commit
287842c675
@ -18,7 +18,8 @@ Version 1.4.04-dev
|
|||||||
= Fixed bug where Shake wouldn't damage mobs whose max health was less than 4
|
= Fixed bug where Shake wouldn't damage mobs whose max health was less than 4
|
||||||
= Fixed bug where the API would fail if the name of a player's current party is requested when the player isn't in one (Thanks @dualspiral!)
|
= Fixed bug where the API would fail if the name of a player's current party is requested when the player isn't in one (Thanks @dualspiral!)
|
||||||
= Fixed bug with retrieving a player's party members
|
= Fixed bug with retrieving a player's party members
|
||||||
= Fixed bug which caused an NPE when trying to join the party of a non-existing player or when ptp to a non-existing player
|
= Fixed bug which caused a NPE when trying to join the party of a non-existing player or when ptp to a non-existing player
|
||||||
|
= Fixed bug which causes a NPE when trying to use /mcrefresh from the console
|
||||||
! Changed config node name for the skill experience modifiers from "Experience.Formula.Multiplier.[Skill]" to "Experience.Formula.Modifier.[Skill]"
|
! Changed config node name for the skill experience modifiers from "Experience.Formula.Multiplier.[Skill]" to "Experience.Formula.Modifier.[Skill]"
|
||||||
! Updated localization files
|
! Updated localization files
|
||||||
! mcMMO abilities can no longer be activated while in Creative mode
|
! mcMMO abilities can no longer be activated while in Creative mode
|
||||||
|
@ -53,7 +53,7 @@ public class McrefreshCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
refreshPlayer();
|
refreshPlayer();
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", args[0]));
|
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", player.getName()));
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -67,6 +67,7 @@ public class McrefreshCommand implements CommandExecutor {
|
|||||||
mcMMOPlayer.resetToolPrepMode();
|
mcMMOPlayer.resetToolPrepMode();
|
||||||
mcMMOPlayer.resetAbilityMode();
|
mcMMOPlayer.resetAbilityMode();
|
||||||
|
|
||||||
|
player = mcMMOPlayer.getPlayer();
|
||||||
player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user