#How to format seconds diff

1 messages · Page 1 of 1 (latest)

finite hound
#

right so, i wanna make it so when you are on a cooldown it doesnt say "27.31 seconds" instead it says "27s"

#
    aliases: /wild
    trigger:
        set {_lastRTP} to {cooldowns::randomtp::%player's uuid%}
        if difference between {_lastRTP} and now < 30 seconds:
            set {_remaining} to difference between 30 seconds and difference between {_lastRTP} and now
            send "&cYou can't rtp for another %{_remaining}%." to player
            send action bar "&cYou can't rtp for another %{_remaining}%." to player
            stop```
next thicket
#

round(x)

finite hound
flint sierra
#

not sure though

finite hound