mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-06 20:38:08 +02:00
Merge pull request #350 from kosakriszi/master
Reset player saturation and exhaustion for heal command
This commit is contained in:
commit
536132a250
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user