added placeholder for soft_restart
This commit is contained in:
6
main.py
6
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:
|
||||
|
||||
Reference in New Issue
Block a user