### Install aio-mc-rcon Source: https://github.com/iapetus-11/aio-mc-rcon/blob/main/README.md Install the aio-mc-rcon library using pip. This command ensures you get the latest version. ```bash pip install -U aio-mc-rcon ``` -------------------------------- ### Client Initialization Source: https://github.com/iapetus-11/aio-mc-rcon/blob/main/README.md Initializes the RCON client with server connection details. ```APIDOC ## Client(host: str, port: int, password: str) ### Description Initializes an asynchronous RCON client to connect to a Minecraft Java Edition server. ### Parameters #### Path Parameters - **host** (str) - Required - The hostname or IP address of the server. - **port** (int) - Required - The port the RCON service is running on. - **password** (str) - Required - The RCON password, typically found in `server.properties` under `rcon.password`. ``` -------------------------------- ### Client.connect Source: https://github.com/iapetus-11/aio-mc-rcon/blob/main/README.md Establishes a connection to the RCON server. ```APIDOC ## connect(timeout: int = 2) ### Description Establishes an asynchronous connection to the RCON server. ### Parameters #### Query Parameters - **timeout** (int) - Optional - The time in seconds to wait for the connection to establish. Defaults to 2 seconds. ``` -------------------------------- ### Client.send_cmd Source: https://github.com/iapetus-11/aio-mc-rcon/blob/main/README.md Sends a command to the RCON server and returns the response. ```APIDOC ## send_cmd(cmd: str, timeout: int = 2) ### Description Sends a command to the Minecraft server via RCON and returns the server's response. ### Parameters #### Path Parameters - **cmd** (str) - Required - The command to execute on the server. #### Query Parameters - **timeout** (int) - Optional - The time in seconds to wait for the command execution and response. Defaults to 2 seconds. ``` -------------------------------- ### Client.close Source: https://github.com/iapetus-11/aio-mc-rcon/blob/main/README.md Closes the RCON connection. ```APIDOC ## close() ### Description Closes the active RCON connection to the server. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.