#how to make a /daily command with cooldown

1 messages · Page 1 of 1 (latest)

brave cave
#

cause it sucks at making scripts

#

and people always use it and then come here and complain when it doesnt work

#

.
anyways, you should format your code in a code block (```code here```) to make it easier to read (right now i cant see indentation).

commands also have a cooldown property which will let you not use a variable

#

also, when you add (the last line), you have to add 2 timespans, so it would be 86400 seconds. you can also just set {something} to 10 hours from now.

worn ginkgo
#

Just add the word cooldown after the command and time you can also add "cooldown message" for a message when the cooldown is not done yet

robust sinew
quaint elk
#

why not just use command cooldowns?

#

command /example: cooldown: cooldown message: trigger: code here

#

it'll reset everytime you reload the skript though so i recommend storing the var 👍

robust sinew
#

Fun fact of the day

#

You can add a cooldown storage to store the cooldown in a variable so it doesn’t reset

#

command /example: cooldown: cooldown message: cooldown storage: trigger: code here

worn ginkgo
#

Wait what

#

What does it do

brave cave
#

Love how 4 different ppl said use cooldown

robust sinew
worn ginkgo
#

I meant storage lmao

#

Ik how to make cooldowns to commands

robust sinew
#

So it doesn’t reset when the server restarts or you reload the akript

worn ginkgo
#

Ohh so if timer is 10 sec and i reload it it wont restart to 0?

worn ginkgo
#

I just add any variable to there

#

?

robust sinew
#

Yoy can name it what you want