[Skript Coding Tutorial] Heal Command (Part 1)

Status
This thread has been locked.

Striker

Feedback score
7
Posts
127
Reactions
32
Resources
0




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
 
Status
This thread has been locked.
Top