Skript: Expansion of the cooldown feature within skript

Created on 31 May 2019  路  3Comments  路  Source: SkriptLang/Skript

Like currently, you can only do

command /coinflip:
    cooldown: 2 seconds
    cooldown message: &cYou can only use this command every 2 seconds

but it would be great if something like

command /coinflip [<string>] [<string>]:
    aliases: cf
    trigger:
        if arg-1 is not set:
            openCF(player)
        if arg-1 is set:
            if arg-1 is "update":
                cooldown: 2 seconds
                cooldown message: &cYou can only use it in %cooldown duration% seconds later
                openCF(player)

was added

enhancement lowest

All 3 comments

that could be cool. Maybe keep the current settings where they鈥檙e at, and instead add an expression to set, add to, etc with the command cooldown.

set command cooldown to %timespan%
add %timespan% to the command cooldown

Do the command cooldown expressions not satisfy this for you? You should be able to add/set/delete the remaining time, elapsed time, and last usage time of the player's cooldown for that command within the command event. You could try to set the cooldown of the command to the highest value you want and for all cases where it should have no cooldown set remaining cooldown to 0 seconds.

Do the command cooldown expressions not satisfy this for you? You should be able to add/set/delete the remaining time, elapsed time, and last usage time of the player's cooldown for that command within the command event. You could try to set the cooldown of the command to the highest value you want and for all cases where it should have no cooldown set remaining cooldown to 0 seconds.

Ehm.. Forgot about the cancel cooldown, didn't you?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FUZIK picture FUZIK  路  4Comments

cyanide43 picture cyanide43  路  4Comments

Misio12320 picture Misio12320  路  3Comments

jaylawl picture jaylawl  路  3Comments

TheClassic36 picture TheClassic36  路  3Comments