from mcrcon import MCRcon import sys with MCRcon(sys.argv[1], sys.argv[2], sys.argv[3]) as mcr: print(mcr.command(sys.argv[4]))