mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-06 12:18:09 +02:00
Merge pull request #324 from Torm/master
Fix heal command for players with more health than 20
This commit is contained in:
commit
2a69d1c7c9
@ -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