NISHIO Hirokazu[Translate]
RCON
>RCON is a protocol that allows server administrators to remotely execute Minecraft commands.

Python
これはどうも挙動がおかしい

mcrconはちゃんと動く

$ pip install aio-mc-rcon
python
from aiomcrcon import Client import asyncio async def main(): command = "hd setLine test 1 Hello World via RCON" client = Client(HOST, PORT, PASSWORD) await client.connect() response = await client.send_cmd(command) print(response) await client.close() if __name__ == "__main__": asyncio.run(main())

"Engineer's way of creating knowledge" the English version of my book is now available on [Engineer's way of creating knowledge]

(C)NISHIO Hirokazu / Converted from [Scrapbox] at [Edit]