fixed str & int

This commit is contained in:
officereso 2020-02-26 21:12:26 -06:00
parent ae1b2bd8a0
commit 7033f672dd

View File

@ -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")