added placeholder for soft_restart

This commit is contained in:
2024-06-11 14:05:47 +02:00
parent 12f65376c1
commit adfbe32698

View File

@@ -3,6 +3,8 @@ from rcon.battleye import Client, ServerMessage
import sys import sys
import os import os
import json import json
import socket
from time import sleep
@@ -174,6 +176,10 @@ def hard_restart():
response = client.run('#shutdown') response = client.run('#shutdown')
print(response) print(response)
def soft_restart(): # Not implemented yet
print('not implemented yet')
pass
def list_players(): def list_players():
try: try:
with Client(SERVER_ADDRESS, SERVER_PORT, passwd=RCON_PASSWORD) as client: with Client(SERVER_ADDRESS, SERVER_PORT, passwd=RCON_PASSWORD) as client: