fix restart_server sleep times
This commit is contained in:
parent
5f77c69f4b
commit
c981dc9bff
|
@ -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…
Reference in a new issue