Jump to content

Recommended Posts

Quote

every 1 seconds:
    loop all players:
        if loop-player is online:
            add 1 to {playtime::%loop-player's uuid%}
            
command /playtime [<offline player>]:
    trigger:
        if arg-1 is set:
            if {playtime::%arg-1's uuid%} >= 60:
                if {playtime::%arg-1's uuid%} <= 3600:
                    set {_mins} to {playtime::%arg-1's uuid%} / 60
                    send "&e%arg-1%&e's playtime is: %{_mins}%&e minutes" to player
                else:
                    if {playtime::%arg-1's uuid%} <= 86400:
                        set {_hours} to {playtime::%arg-1's uuid%} / 3600
                        send "&e%arg-1%&e's playtime is: %{_hours}%&e hours" to player
                    else:
                        set {_days} to {playtime::%arg-1's uuid%} / 86400
                        send "&e%arg-1%&e's playtime is: %{_days}%&e days" to player
        else:
            if {playtime::%player's uuid%} >= 60:
                if {playtime::%player's uuid%} <= 3600:
                    set {_mins} to {playtime::%player's uuid%} / 60
                    send "&eYour playtime is: %{_mins}%&e minutes" to player
                else:
                    if {playtime::%player's uuid%} <= 86400:
                        set {_hours} to {playtime::%player's uuid%} / 3600
                        send "&eYour playtime is: %{_hours}%&e hours" to player
                    else:
                        set {_days} to {playtime::%player's uuid%} / 86400
                        send "&eYour playtime is: %{_days}%&e days" to player

 

Link to post
Share on other sites
Posted (edited)

Since when has a playtime skript become advanced?

 

Also this skript is highly inefficient.

Edited by SuperOrca

 

like.gif.653e1b24da93a6ca10eaf5b04e7f0242.gif

Likes are appreciated ❤️

 

 

Rank: [VIP]

Joined Minehut: August 10, 2017

Joined Forums: June 10, 2019

 

Expirenced in Skript, Web Design, Java, Python. Check out my minehut api wrapper for python here.

Link to post
Share on other sites
Posted (edited)
2 hours ago, SuperOrca said:

Since when has a playtime skript become advanced?

 

Also this skript is highly inefficient.

no you can totally see this is the must advanced, optimized and efficient playtime skript in earth.

People often forget what while means and love looping all players in every second

Lovely

Edited by Bonnie20402
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...