Files
2026-09-06 09:30:40 -05:00

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")