Commands let players perform actions and customize gameplay using text-based instructions. Use this topic to share feedback and ideas for improving commands and related tools.

6

/timelimit Command

1 Comments

Post a new comment:

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.