Skip to content

Commit 0622a02

Browse files
committed
решил ошибку с передачей порта, из-за чего не работал rcon
1 parent e5fd569 commit 0622a02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

minecraft/rcon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def replace_color_tag(text: str) -> str:
5555
def command_execute(command: str) -> Union[str, List[str]]:
5656
try:
5757
with MCRcon(
58-
getenv("rcon_host"), getenv("rcon_password"), getenv("rcon_port")
58+
getenv("rcon_host"), getenv("rcon_password"), int(getenv("rcon_port"))
5959
) as mcr:
6060
mcr.connect()
6161
response = mcr.command(command)

0 commit comments

Comments
 (0)