Can’t get console commands to execute
Yes, "restart" is a server-side command and does work with the plugin.dravenmeex"Restart" is a console command. That's how the server is restarted, right?
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"
},
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.dravenmeexThat 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.
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.
Have you tested with other server commands? Have you tested are other specific times based on the server's time zone?
misticos
Can you try with "global.restart" instead?
Absolutely. I will report back with my results tomorrow. Thanks, Misticos.
Merged postSorry to report, but it did not work. :(
"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"