• 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 community!

    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!

Status
Not open for further replies.
Jun 13, 2021
1
0
1
Im trying to make a ability skript with cooldown but how? Fairly new to skript, don't expect much.
I tried a lot of other tutorials but none worked.

on right click with golden sword:
if name of event-item "&6Midas Sword":
#add cooldown here
 
Code:
on quit:
  delete {midassword::%player%}

on right click with golden sword:
  if name of event-item "&6Midas Sword":
    if difference between now and {midassword::%player%} is less than 10 seconds: #edit the timespan here
      set {midassword::%player%} to now
      #here is your event
    else:
      send "your ability is on cooldown, please wait another %(difference between now and {midassword::%player%}) - 10 seconds%" # and here
 
Status
Not open for further replies.