We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

6

/timelimit Command

1 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 2
    Registered User commented
    Comment actions Permalink

    Run these commands once:

    scoreboard objectives add ticksPlayed dummy

     

    Run these commands each tick:

    scoreboard players add @a ticksPlayed data 1

    execute as @a if score @s data matches 72000... run kick @s

     

    72000 is the number of ticks in an hour, so this command should kick people off after an hour of play. Adjust the number to change the time limit.

    Each time you want to reset play time, run this command:

    scoreboard players reset * timePlayed

     

    There, I did it without a command for it.