Change "Seconds" "Minutes"

  • 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 comminuty!

    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.

zTak

Active Member
Mar 3, 2018
84
6
8
21
Hey, I have a Question:
2019-10-29_15.49.26.png

How can I remove the "76" from Seconds?

My code:

Code:
Every second:
    set {_waited} to difference between {stundenevent} and now
    if {_waited} is less than 60 minutes:
        set {_time} to "%difference between 60 minutes and {_waited}%"
        replace every "hours" with "h" in {_time}
        replace every "hour" with "h" in {_time}
        replace every "minutes" with "m" in {_time}
        replace every "minute" with "m" in {_time}
        replace every "seconds" with "s" in {_time}
        replace every "seconds" with "s" in {_time}
        replace every "and" with "" in {_time}
        execute console command "/Hd setline stundenevent 2 &8> &7&o%{_time}%"



    else:
        set {stundenevent} to now
        broadcast ""
        broadcast ""
        broadcast "&8> &7Das Stundenevent beginnt jetzt&8!"
        broadcast ""
        broadcast ""

        wait 1 second
        broadcast "&8> &7Du hast &63x Premiumkit &7erhalten&8!"
        give 3 book named "&8> &6Premiumkit" with lore "&7&oerstellt von &4H4wki" to all players
            
            
            
        wait 1 second
        broadcast "&8> &7Du hast &e3x Goldblock &7erhalten&8!"
        give 3 gold block to all players
            
            
            
        wait 1 second
        broadcast "&8> &7Du hast &3SkyBlock-Spitzhacke &7erhalten&8!"
        give diamond pickaxe of efficiency 3 and unbreaking 1 named "&8&k|&3Spitzhacke&8&k|" to all players
                    
            
        wait 1 second
        broadcast "&8> &7Du hast &3SkyBlock-Schaufel &7erhalten&8!"
        give diamond shovel of efficiency 3 and unbreaking 1 named "&8&k|&3Schaufel&8&k|" to all players
                    

            
        wait 1 second
        broadcast "&8> &7Du hast &3SkyBlock-Axt &7erhalten&8!"
        give diamond axe of efficiency 3 and unbreaking 1 named "&8&k|&3Axt&8&k|" to all players
                



        wait 1 second
        broadcast "&8> &7Du hast &b5x Diamant &7erhalten&8!"
        give 5 diamond to all players



            
        wait 1 second
        broadcast "&8> &7Du hast &b1x H4wkispalter &7erhalten&8!"
        give diamond axe of sharpness 4 named "&4H4wkispalter" to all players
        
        broadcast ""
        broadcast "&8> &7Das Stundenevent ist vorbei&8!"
        broadcast ""
 
Status
Not open for further replies.