From adfbe326981242a4d54f7843fc30dcc57f12607c Mon Sep 17 00:00:00 2001 From: Bene Date: Tue, 11 Jun 2024 14:05:47 +0200 Subject: [PATCH] added placeholder for soft_restart --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index efa29bd..9f95ebf 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,8 @@ from rcon.battleye import Client, ServerMessage import sys import os import json +import socket +from time import sleep @@ -174,6 +176,10 @@ def hard_restart(): response = client.run('#shutdown') print(response) +def soft_restart(): # Not implemented yet + print('not implemented yet') + pass + def list_players(): try: with Client(SERVER_ADDRESS, SERVER_PORT, passwd=RCON_PASSWORD) as client: