Reset player saturation and exhaustion for heal command

This commit is contained in:
kosakriszi 2016-01-07 03:12:05 +01:00
parent 729f66afdf
commit 7c3b1ad20f

View File

@ -158,6 +158,8 @@ public void heal(CommandContext args,CommandSender sender) throws CommandExcepti
for (Player player : targets) {
player.setHealth(player.getMaxHealth());
player.setFoodLevel(20);
player.setSaturation(20);
player.setExhaustion(0);
// Tell the user
if (player.equals(sender)) {