mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 02:57:42 +01: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) {
|
for (Player player : targets) {
|
||||||
player.setHealth(20);
|
player.setHealth(player.getMaxHealth());
|
||||||
player.setFoodLevel(20);
|
player.setFoodLevel(20);
|
||||||
|
|
||||||
// Tell the user
|
// Tell the user
|
||||||
|
Loading…
Reference in New Issue
Block a user