Jump to content

Derrickpower2

Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Derrickpower2

  1. On 6/18/2019 at 6:17 AM, MrScopes said:

    here's a non bad version of this

    
    every second:
        loop all players:
            add 1 second to {playtime::%loop-player's uuid%}
    
    function time(t: text) :: text:
        set {_n} to {_t}
        replace all " seconds" and " second" with "s" in {_n}
        replace all " minutes" and " minute" with "m" in {_n}
        replace all " hours" and " hour" with "h" in {_n}
        replace all " days" and " day" with "d" in {_n}
        replace all " and " with " " in {_n}
        return {_n}
    
    command /playtime [<offlineplayer>]:
        trigger:
            set {_p} to arg 1 ? player
            set {_u} to {_p}'s uuid
            if {playtime::%{_u}%} is not set:
                send "&cThat user is not registered."
            else:
                set {_time} to time("%{playtime::%{_u}%}%")
                send ""
                send " &3%{_p}'s playtime: &7%{_time}%"
                send ""

     

    I tried this skript and it didn't work. I did /playtime and it gave me 2 blank lines. Can you send me a working one please?

×
×
  • Create New...