Fix heal command for players with more health than 20

This commit is contained in:
Torm 2014-08-11 00:02:26 +02:00
parent 9cab51dac8
commit 573204caad

View File

@ -150,7 +150,7 @@ public void heal(CommandContext args,CommandSender sender) throws CommandExcepti
}
for (Player player : targets) {
player.setHealth(20);
player.setHealth(player.getMaxHealth());
player.setFoodLevel(20);
// Tell the user