fixed str & int
This commit is contained in:
parent
ae1b2bd8a0
commit
7033f672dd
@ -34,10 +34,10 @@ def change(ip1, ip2):
|
||||
os.system("systemctl stop mc mcL mcP mcEvent1 mcEvent2")
|
||||
|
||||
for i in range(len(allServerRcon)):
|
||||
print("192.168.1.52 " + f"{password} " + allServerRcon[i]['serverRCON'] + "________________________________________________________________________________________________")
|
||||
print("192.168.1.52 " + f"{password} " + str(allServerRcon[i]['serverRCON']) + "________________________________________________________________________________________________")
|
||||
|
||||
for i in range(len(allServerRcon)):
|
||||
with MCRcon("192.168.1.52", f"{password}", allServerRcon[i]['serverRCON']) as mcr:
|
||||
with MCRcon("192.168.1.52", f"{password}", port=allServerRcon[i]['serverRCON']) as mcr:
|
||||
mcr.command("stop")
|
||||
|
||||
f = open("/etc/systemd/system/mcEvent1.service", "w")
|
||||
|
Loading…
x
Reference in New Issue
Block a user