Daily Server Auto-Restarter Script
Hey there,
Was wondering if anyone knew how to make an auto restart script so my server can restart daily at a certain time without manually having to reboot.
Running of Windows if that matters.
Cheers
If you're on a managed host, it is very likely there is some kind of panel scheduler you can use to auto-restart instead. I know both TCAdmin and Pterodactyl (Renamed WISP on Crident) have them. This is the most elegant way of doing it.
I'm running off a windows vps server, I'm thinking I'd probably have to download some third-party program to schedule when apps on the server open and close? Can't seem to find any commands to execute this unfortunately.
That just runs the changelevel command.
Also what in the world is this code?

He also created a table that you mustn't touch that isn't used whatsoever lol
If you really want to use that for whatever reason, use this instead.
I still think this is pretty stupid (since it's not actually restarting the server) but whatever you want to do go for it
Tbh the main reason for restarting a server periodically is to reset CurTime which gets absolutely fucked after a certain amount of time has passed, I believe changelevel resets it too.
Alternatively, you can play russian roulette with this, and hope that your server auto restarts after crashing :^)
Idk if that's still a thing, but a few years ago I believe there was command ("_restart") that could quit your server.
If you have a auto-restart script, that could work.
But if I remember correctly on some OS this would not work, as it rather crashed the server instead of closing it or something.
You can give it a shot but no gurantee and probably not the best way.
That hurted my eyes