Scripts

Scripts are lists of commands the server executes automatically. Instead of you running each command by yourself, you can make a script to store all of the commands, and run just that script!

Where to make a script?

All scripts are stored in the LabAPI -> configs -> Scripted Events Reloaded folder. You can also make folders with scripts inside the Scripted Events Reloaded folder, SER also supports that!

How to make a script?

All scripts are text files. Create a file called myScript.txt, which will be your first script. Once created, copy the following:

Reply "Hello, World!"

This is now a valid script!

How to run a script?

You can either run it through the server or remote admin console using the serrun command. Simply do

serrun <scriptName>

So in our case, we replace <scriptName> with myScript:

serrun myScript

The serrun command only expects script names, not full file names!

You should now see a message like this:

[21:37:69] serrun myScript
[21:37:69] Hello, World!
[21:37:69] Script 'myScript' was requested to run

Last updated