Dash Skript not Working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

I literally just created an account to reply to this because it's the worst code I've ever seen.


options:
cooldown: 20

#--------------------------------------------------------------------------------------------------
# EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
if {cooldown.%player's uuid%.lastUsed} is not set:
set {cooldown.%player's uuid%.lastUsed} to {@cooldown}1 seconds ago
if difference between now and {cooldown.%player's uuid%.lastUsed} is higher than {@cooldown} seconds:
make console execute command "/heal %player%"
set {cooldown.%player's uuid%.lastUsed} to now
else:
send action bar "&dHeal Cooldown = %difference between now and ({@cooldown} seconds after {cooldown.%player's uuid%.lastUsed})%" to player