diff --git a/factorio_rcon.py b/factorio_rcon.py index f886cfd..40d3ac7 100644 --- a/factorio_rcon.py +++ b/factorio_rcon.py @@ -43,8 +43,8 @@ class FactorioRCON: self.sock = None def run(self, lua_command: str) -> str: - """Lua 명령 실행 후 결과 반환""" - cmd = f"/c {lua_command}" + """Lua 명령 실행 후 결과 반환 (silent-command로 콘솔 스팸 방지)""" + cmd = f"/silent-command {lua_command}" req_id = self._send_packet(2, cmd) # type 2 = EXECCOMMAND result = self._recv_packet() return result.get("body", "").strip()