mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 19:18:53 +01:00
Reset player saturation and exhaustion for heal command
This commit is contained in:
parent
729f66afdf
commit
7c3b1ad20f
@ -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