Browse Source

fix restart_server sleep times

main
minecraft 6 months ago
parent
commit
c981dc9bff
  1. 6
      restart_server.py

6
restart_server.py

@ -9,13 +9,13 @@ autosave_on=False @@ -9,13 +9,13 @@ autosave_on=False
with MCRcon(HOST, PW, port=PORT) as mcr:
current_time = datetime.datetime.now().strftime("%H:%M")
resp = mcr.command("say {}: Server will restart in §a10§f minutes".format(current_time))
time.sleep(30)
time.sleep(300)
current_time = datetime.datetime.now().strftime("%H:%M")
resp = mcr.command("say {}: Server will restart in §e5§f minutes".format(current_time))
time.sleep(24)
time.sleep(240)
current_time = datetime.datetime.now().strftime("%H:%M")
resp = mcr.command("say {}: Server will restart in §61§f minute".format(current_time))
time.sleep(5)
time.sleep(50)
for i in range(10):
resp = mcr.command("say Server will restart in §4{}§f seconds".format(10-i))
time.sleep(1)

Loading…
Cancel
Save