From 573204caad8a6430e38c85aa770f50c1e16bf5d2 Mon Sep 17 00:00:00 2001 From: Torm Date: Mon, 11 Aug 2014 00:02:26 +0200 Subject: [PATCH] Fix heal command for players with more health than 20 --- .../com/sk89q/worldguard/bukkit/commands/GeneralCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/GeneralCommands.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/GeneralCommands.java index dfd6ccaf..4819e5f4 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/GeneralCommands.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/GeneralCommands.java @@ -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