Page 1 of 1

Server Javascript scripting

Posted: Wed Feb 23, 2022 5:13 pm
by baker
Is there any way to run commands like forcespec or kick from the server javascript files similar to the chat admin commands here?viewtopic.php?f=1&t=13510

Looking at the readme w/ the server javascript files I don't see anything so I figured I'd ask here :)

The main thing I'm trying to accomplish is fetching a list of riders signed up for a particular race and either force specing or kicking, similar to how RF races run after UID grab.

Re: Server Javascript scripting

Posted: Wed Feb 23, 2022 6:12 pm
by baker
Gonna answer myself for others reference.

Code: Select all

mxserver.schedule_command("at 0 kick "+ slot);