Remaining time of cooldown in scoreboard

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

IrepY

Member
Mar 28, 2021
1
0
1
Hi, i have this script, which has a minute cooldown, and i somehow want to show the remaining time in scoreboard.
Code:
options:
    pref:&0&l[&6FastFood&0&l]

command /tip:
    cooldown: 1 minute
    cooldown message: {@pref}&c You can use this command again in %remaining time%
    trigger:
        if {tipjar::%player%} is more than 0:
            set {_tipstart} to 100 * {tipjar::%player%}
            set {_tipend} to {_tipstart} * 2
            set {_tip} to a random integer between {_tipstart} and {_tipend}
            add {_tip} to {balance::%player%}
            send "{@pref}&a You got %{_tip}%&a in tips!"
        else:
            send "{@pref}&c Looks like you do not have a tipjar yet, buy one in /storeupgrades"
Is there any way to do this? I've been trying for hours but no luck so far.
 
Status
Not open for further replies.