Skip to content
home/templates/playtime tracker (/playtime)
utilityBeginnermc 1.20.x – 1.21.x11 lines

playtime tracker (/playtime)

tracks how long each player has been online. /playtime shows your total time. updates every minute.

vanilla Skriptno addons required.
playtime-tracker.sk11 lines
every 1 minute:
    loop all players:
        add 1 to {playtime.%uuid of loop-player%}

command /playtime [<player>]:
    trigger:
        set {_target} to arg-1 ? player
        set {_mins} to {playtime.%uuid of {_target}%} ? 0
        set {_hours} to {_mins} / 60
        send "&e%{_target}%'s playtime: &f%{_hours}% hours (%{_mins}% minutes)" to player

get it running

playtime-tracker.sk · 11 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    playtime-tracker.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/playtime-tracker.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload playtime-tracker
that's it — your script is live. hop in-game to try it.
/ related templates

more utility templates

comments