Hi, i have this script, which has a minute cooldown, and i somehow want to show the remaining time in scoreboard.
Is there any way to do this? I've been trying for hours but no luck so far.
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"