mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-20 05:21:21 +02:00
Healing others puts them out
Extinguishes the fire on another player if you do /heal <player>
This commit is contained in:
@@ -61,6 +61,7 @@ public class Commandheal extends EssentialsCommand
|
|||||||
final Player player = p.getPlayer();
|
final Player player = p.getPlayer();
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
player.setFoodLevel(20);
|
player.setFoodLevel(20);
|
||||||
|
player.setFireTicks(0);
|
||||||
player.sendMessage(_("heal"));
|
player.sendMessage(_("heal"));
|
||||||
sender.sendMessage(_("healOther", player.getDisplayName()));
|
sender.sendMessage(_("healOther", player.getDisplayName()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user