#Is there a way to make a schedualed command

9 messages · Page 1 of 1 (latest)

wanton badge
#

For instance every real hour peaceful for 10 minutes?

winged mirageBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

hybrid rock
#
Utils.server.scheduleRepeating('1h', scheduled => {
  Utils.server.runCommandSilent('difficulty peaceful')
})
#

At least this works for 1.20.1

#

Also, you don't need commands to set the difficulty:

Utils.server.scheduleRepeating('1h', scheduled => {
  Utils.server.setDifficulty(
    /* difficulty: */ 'peaceful',
    /* isForced: */ false
  )
})
wanton badge
#

oh thank you

wanton badge
#

Doesnt seem to work on 1.19 or im doing something wrong

#

both are equally possible