-
Notifications
You must be signed in to change notification settings - Fork 8
RunScripts
Jason Spafford edited this page Jul 18, 2018
·
1 revision
This plugin can run an arbitrary script file. If you add a Discord webhook for it, it will also send the STDOUT of that script to discord. If the command you specify returns a nonzero exit code, which indicates failure, the error will ALWAYS be sent to discord if it's enabled.
Name | Example | Description |
---|---|---|
enabled | true | Set to true or false to prevent this plugin from running |
command | test.bat | The path to the command, relative to serverthrall.exe or an absolute path |
command_timeout | 300 | The number of seconds before timing out the command. This is optional but you should absolutely specify this, or else if the command you run hangs it'll cause your server not to come back up. |
[RunScripts]
enabled = true
command = test.bat
command_timeout = 300
[Discord]
enabled = true
RunScripts = https://discordapp.com/api/webhooks/...
Questions? Ask in our Discord
- Home
- Installation and Setup
- Primer on using ServerThrall
- Updating ServerThrall
- Common Issues
- Development Roadmap
How to...
- Setup your server for Thrallbrowser
- View a live map of all player locations using Ginfo
- Send notifications before restarting
- Schedule automatic restarts
- Install and Update Mods
- Setup two servers on the same computer
- Notify admins when server is down
- Change the language ServerThrall uses
Plugin Documentation