diff --git a/plugins/mctools.py b/plugins/mctools.py index 228512f..c47d11c 100755 --- a/plugins/mctools.py +++ b/plugins/mctools.py @@ -126,8 +126,8 @@ def mcping(inp): else: try: getdata = srvData(inp) - host = inp - port = getdata[0] + host = str(getdata[1]) + port = int(getdata[0]) except: host = inp port = 25565