This plugin allows you to schedule RCON commands to run exactly when you need them to.
You can set them to run when the server starts, every X minutes, every X hours or at an exact time during the day.
Schedules are based on real world time (not in game time).
Installing and/or updates for the DLL must be performed while the server is offline.
Dependencies:
- Microsoft Visual C++ Redistributable for Visual Studio 2019 - My plugins are compiled with the newer Visual Studio 2019. If you are unable to load my plugin and get error 126 you need to install this.
- RconScheduler.Reload
- This will reload the config and restart the schedules as if the server was just started.
- This command only works from RCON
JSON:
{
"DisplayCommandLog": false,
"PlayerJoin": {
"Enabled": true,
"Message": "This appears about 15 seconds after player joins!",
"Color": "Green",
"DisplayTime": 10.0,
"DisplayScale": 1.3
},
"Commands": [
{
"Command": "serverchat test message on Sunday's 2:41pm!",
"Type": "Cron",
"Schedule": "41 14 * * 0"
},
{
"Command": "serverchat test message at 2:41pm!",
"Type": "Exact",
"Schedule": "14:41:00"
},
{
"Command": "serverchat test message at 2:40:02pm!",
"Type": "Exact",
"Schedule": "14:40:02"
},
{
"Command": "serverchat test message at 7:40am!",
"Type": "Exact",
"Schedule": "7:40:00"
},
{
"Command": "broadcast hello world every 1 minute!",
"Type": "Minutes",
"Schedule": 1
},
{
"Command": "broadcast hello world every 1 hour!",
"Type": "Hours",
"Schedule": 1
},
{
"Command": "DestroyAll BeeHive_C",
"Type": "Minutes",
"Schedule": 5
},
{
"Command": "serverchat test message every 3 minutes",
"Type": "Minutes",
"Schedule": 3
},
{
"Command": "destroyall droppeditemgeneric_fertilizedegg_nophysicsdeinonychus_c",
"Type": "Startup"
},
{
"Command": "destroyall droppeditemgeneric_fertilizedegg_nophysicswyvern_c",
"Type": "Startup"
},
{
"Command": "destroyall droppeditemgeneric_fertilizedegg_nophysicscherufe_c",
"Type": "Startup"
},
{
"Command": "destroyall droppeditemgeneric_fertilizedegg_rockdrake_nophysics_c",
"Type": "Startup"
},
{
"Command": "serverchat",
"Type": "Minutes",
"Schedule": 5,
"Sender": "Test",
"Message": "This appears every 5 minutes enjoy!"
},
{
"Command": "notification",
"Type": "Minutes",
"Schedule": 3,
"Message": "This appears every 3 minutes enjoy!",
"Color": "Green",
"DisplayTime": 10.0,
"DisplayScale": 1.3
}
]
}
Detailed Configuration Info:
Commands:
- Command = RCON command example "DestroyAll BeeHive_C"
- Type = What type of schedule
- "Exact" will run at the specified time in the "Schedule" setting. If the time is already past this command will execute the next day at the specified time.
- "Hours" will run every X hours from the time the server started until the server shutsdown.
- "Minutes" will run every X minutes from the time the server started until the server shutsdown.
- "Startup" will run once when the server is started.
- Schedule = This is dependent on the "Type" setting.
- Exact Example = "14:22:00" this would run at 2:22pm it must be in this format including the seconds.
- Hours and Minutes you would just set a number like 5
- Startup does not use this.
- "notification" - Displays notification style popup message at the top of the screen.
-
JSON:
{ "Command":"notification", "Type":"Minutes", "Schedule":3, "Message":"This appears every 3 minutes enjoy!", "Color":[0,1,1,1], "DisplayTime":10.0, "DisplayScale":1.3 }
-
- "serverchat" - Using this command alone (not specifying a message in the command) opens up additional options.
-
JSON:
{ "Command":"serverchat", "Type":"Minutes", "Schedule":5, "Sender":"Test", "Message":"This appears every 5 minutes enjoy!" }
-
NOTES: This plugin does not support plugins.unload feature in the API. RCON commands are executed one at a time in a single file line so be aware if you put many commands in a short time span.
Buy me a coffee
