Code:
command /heal:
description: A heal command
usage: &e/heal &f|| &e/heal (player)
permission: myheal
permission message: &c&lYou do not have access to this command!
executable by: players
aliases: /h, /heals, /feels
trigger:
if player's health is 10:
send "&aYou are already at full heath!"
else:
heal player
set food level of player to 20
send "&a&lYou have been healed!"
execute console command "effect %player% clear"
stop
