update name & add docs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user