10 lines
196 B
Python
10 lines
196 B
Python
import time
|
|
from rcon import send_command
|
|
|
|
def run(sock):
|
|
send_command(sock, "say server is restarting!")
|
|
send_command(sock, "save-all")
|
|
time.sleep(10)
|
|
send_command(sock, "stop")
|
|
|