Can’t get console commands to execute
Can you update this plugin so that it supports console commands?  Would be nice to use this to restart my server at a certain time or call a heli or supply drop.  Thanks.
Are these chat commands?
The plugin works with console commands already, just not client commands that do not exist on the server. Commands such as "call.heli" are client-only commands.
"Restart" is a console command.  That's how the server is restarted, right?
dravenmeex
"Restart" is a console command.  That's how the server is restarted, right?
Yes, "restart" is a server-side command and does work with the plugin.
5c2d88ae4ea06.jpg Wulf
Yes, "restart" is a server-side command and does work with the plugin.

I have it set to restart at 2am, using the docs as a guide, and it never does.

"RealTime-Timer": {
"2:00:00": "restart"
},

If I have it wrong, please correct me.  Enable realtime timer is True.
Have you tried the "quit" command instead? "restart" is just the quit command with a delay option.
That stops the server and exits the console.  I don't want to do that.  I merely want to restart it and would like to keep the countdown.  If this plugin cannot do that, then it would stand to reason that it does not perform all server-side console commands and my request to update the plugin so that it does is relevant.
dravenmeex
That stops the server and exits the console.  I don't want to do that.  I merely want to restart it and would like to keep the countdown.  If this plugin cannot do that, then it would stand to reason that it does not perform all server-side console commands and my request to update the plugin so that it does is relevant.
Hate to break it to you, but the restart command will do the same thing; the server can't start itself. To actually "restart", you'd need to have something external (not the server, not a plugin; something actually running) to start the server after being "restart"/shutdown/quit. The name "restart" is misleading in Rust as it doesn't actually restart the server, it just quits with a fancy warning message.

In general though, if a command exists on the server, it can be ran by this plugin and will work the same way as if you executed it in the server console directly.

Okay... you've just stated that if it can be typed into the console, then this plugin will run it.  I can type "restart" into the console and it will perform the action.  I've tried to implement it with this plugin and it will not execute the command.
Not trying to be contentious here, but you stated that ""restart" is a server-side command and does work with the plugin.", yet as I've explained and showed via my config, it does not and I would like to either know why (since it is a server-side command and should work) or allow my request to update it to do so to be considered.  I don't want to just quit the server instantly.  I would like to use the delay option.  You telling me that this plugin will run server-side commands, yet it doesn't, is not providing a solution.

Edit:
If anyone has performed this command via this plugin with success, please let me know what is wrong with my configuration.

I don't see why it wouldn't run the command other than the time not being right or configuration itself. There is no difference with how this runs commands vs. how you would manually.

Have you tested with other server commands? Have you tested are other specific times based on the server's time zone?
That's what I was thinking, which is why I didn't understand it not performing the function.  So, if Misticos could maybe check my config or update the plugin so that it would work, that would be awesome.  Thanks, Wulf.
Can you try with "global.restart" instead?
5b6ed4c9ac8e4.jpg misticos
Can you try with "global.restart" instead?

Absolutely.  I will report back with my results tomorrow.  Thanks, Misticos.

Merged post

Sorry to report, but it did not work.  :(
You have:
"RealTime-Timer": {
"2:00:00": "restart"
},

it should be:
"RealTime-Timer": {
"02:00:00": "restart"
},

I would personally set it up as:
"RealTime-Timer": {
"01:55:00": "say Daily restart in 5min, this is automated.",
"01:57:00": "server.save",
"02:00:00": "restart"
},

The above warns the player of a restart so they dont think the server is just going down and also saves the server 3min prior to restart so that players dont experiance a "roll back"