Solved Command cooldown

  • 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.

Sean Sean

Member
May 19, 2018
16
0
0
Full Code:
code_language.skript:
on right click:
    player is holding any pickaxe:
        player is sneaking
        make player execute "/sellall"

I just started Skript and I was wondering how would I put a cooldown in this code I've looked at the document for command with a cooldown I also made my own just like the cake one but I'm not entirely sure where things would go with this set of code

(Sorry for making another post really need this done)
 
Full Code:
code_language.skript:
on right click:
    player is holding any pickaxe:
        player is sneaking
        make player execute "/sellall"

I just started Skript and I was wondering how would I put a cooldown in this code I've looked at the document for command with a cooldown I also made my own just like the cake one but I'm not entirely sure where things would go with this set of code

(Sorry for making another post really need this done)
I'm too lazy to try anything else so i usually just use the "wait X ticks/minutes/minutes/hours/days/weeks/whatever" and then make a variable for true/false, works fine for me as of yet.
 
you can check the time between some things :emoji_stuck_out_tongue:

code_language.skript:
command /cooldown:
    trigger:
        if difference between now and {time.%player%} is greater than 3 seconds:
            message "GOGOGOGO"
            set {time.%player%} to now
            stop
        else:
            message "&cYou have to wait %difference between 3 seconds and (difference between {time.%player%} and now)%"
            stop
 
What version of Skript do you have? The newest versions of bensku's Skript have command cooldowns built into the plugin.
 
Status
Not open for further replies.