mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-06 12:18:09 +02:00
Fix heal command for players with more health than 20
This commit is contained in:
parent
9cab51dac8
commit
573204caad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user