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 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user