Pause and unpause server between times (Rust)

There is a demand for this type of server, especially in the summer when kids have 40 more hours a week to grind resources and snowball.

I want to set up this server but cannot find a plug in to make the server pause at 10 pm and unpause at 4pm.  I dont know anything about what im doing but no one else wants to do it so here I am.

What exactly would a pause be? A plugin can shut down the server, but that's it. A plugin can't start the server. Plugins such as Timed Execute or Smooth Restarter can be used for scheduled shutdowns.
would it be possible to keep the server running. not shut it down, but just force all players to freeze and unfreeze at certain times?
Yes, but everything would still use the same amount of resources and would require a good bit to prevent players from performing actions. What exactly do you need it for?

people want a "workers server". where we dont get totally snowballed and raided while we are at work and the unemployed are on vacation. Ive seen the demand. Its to equalize the "IRL time being an in game resource" aspect of the game. And it would be cool if everyone is on at the same time.

 

I figured there would already be a plugin for changing decay. that was my only concern but its not a huge concern

So what would the players be doing on the server still?
what do you mean? Basically the server is paused during working hours. unpauses at 4pm and pauses again at 10 pm until 4 pm the next day.
thanks ryan!

Merged post

almost what I was looking for, it will do!
Dear Wulf,
What if someone used Timed Execute to set server.maxplayers 0 or server.maxplayers 200 at certain times. Would that block people? ...The server.maxplayers 0?

(P.S. Unrelated: I'll remeber prefab sniffer in the future)
@RyanFromRust i belive that will only stop players from being able to spawn in or join but players inside will be able to continue untill they disconnect
Could there some sort of kick all command ran right after?
yea you could code a foreach to kill all active players

Merged post

so i guess the way (allthough i dont thing its in a server owners interist) to go is
1. check time of day , and set max players to 0 or full
2. set Bool to say when server is in "pause"
3. if server starts pause warn active player that in 10min they will be kicked.
4.on player try to connect block bc server is in "pause"
5 if time for open set max players to max and allow connections.

Merged post

Remember having your Server "Down" half the day , may cause loss of player base . just my opinion.
Problem with all this... is that it leaves active players just suspended (sleeping) in whatever area they are.

monuments, public.
so any zombie /attack coper plugins are really going to give them a bad day.

Far easier to use the "jail" plugin....
TP them to the jail, then TP them back out with kits & location intact.