Forge mod that auto-hibernates server

Hello, I would like to know how to make the minecraft server hibernate when no player is playing. I had this with plugins called Hibernate and it was very efficient except that my server is now a forge server modded in 1.19.2. I'm asking my question here because it's already been asked on your subreddit, which has been locked for a cause I support.
43 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by el2zay#0
ProGamingDk
ProGamingDk2y ago
read pinned message in general
Elie
ElieOP2y ago
Thanks, but I don't think I've found the solution to my problem.
ProGamingDk
ProGamingDk2y ago
"I'm asking my question here because it's already been asked on your subreddit, which has been locked for a cause I support." its the solution to this
Elie
ElieOP2y ago
yup but the post didn't help me
ProGamingDk
ProGamingDk2y ago
ah
Elie
ElieOP2y ago
They talk about https://github.com/gekware/minecraft-server-hibernation but after launching it in a screen, the server launches and then shuts down.
GitHub
GitHub - gekware/minecraft-server-hibernation: Autostart and stop m...
Autostart and stop minecraft-server when players join/leave - GitHub - gekware/minecraft-server-hibernation: Autostart and stop minecraft-server when players join/leave
Elie
ElieOP2y ago
?
Penguin Terminal
Use Empty Server Stopper for forge (https://github.com/GHYAKIMA/emptyserverstopper-mod/releases) and also Sleeping Server Starter (https://github.com/vincss/mcsleepingserverstarter) to start the server when someone wants to join.
GitHub
Releases · GHYAKIMA/emptyserverstopper-mod
mcEmptyServerStopper plugin port for Fabric. Contribute to GHYAKIMA/emptyserverstopper-mod development by creating an account on GitHub.
GitHub
GitHub - vincss/mcsleepingserverstarter: Put your minecraft server ...
Put your minecraft server to rest, while SleepingServerStarter is watching ! - GitHub - vincss/mcsleepingserverstarter: Put your minecraft server to rest, while SleepingServerStarter is watching !
Penguin Terminal
That is kinda the point of it though...
Elie
ElieOP2y ago
but it does not turn off my minecraft server does it take time for the server to restart? what I have to do with the emptyserver jar ?
Penguin Terminal
put it in your mods folder yes, but it can be pretty fast on decent hardware also if you want the server to stop, you have to start it again when people want to play again anyway so its a trade off
Elie
ElieOP2y ago
ok and for the file it's ok like that ?
serverName: SleepingServer, waiting for his prince...
serverPort: 25565
maxPlayers: 20
loginMessage: ...Waking server up, come back in a minute...
serverOnlineMode: false
webPort: 0
webStopOnStart: false
startMinecraft: true
minecraftCommand: java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19.2-43.2.14/unix_args.txt "$@"
version: false
serverName: SleepingServer, waiting for his prince...
serverPort: 25565
maxPlayers: 20
loginMessage: ...Waking server up, come back in a minute...
serverOnlineMode: false
webPort: 0
webStopOnStart: false
startMinecraft: true
minecraftCommand: java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19.2-43.2.14/unix_args.txt "$@"
version: false
ProGamingDk
ProGamingDk2y ago
serverOnlineMode false?
Elie
ElieOP2y ago
We have a crack player
Penguin Terminal
!offline
Elie
ElieOP2y ago
I put it on true.
Elie
ElieOP2y ago
Because piracy is bad m'kay
No description
Penguin Terminal
looks fine, does it work?
Elie
ElieOP2y ago
nope
Elie
ElieOP2y ago
2 fans at 3700 rpm each...
No description
Penguin Terminal
is the mc server itself running?
Elie
ElieOP2y ago
yeah I joined it with a friend
Penguin Terminal
did you install the sleeping server mod? Also send the config of the mod
Elie
ElieOP2y ago
Yes The config oh the mod ??
Penguin Terminal
I'm not sure how forge modding works, but isnt there some way to modify the config of mods? I could be that by default, there is a set delay on how long the server needs to be empty before it shuts down
Elie
ElieOP2y ago
Idk I'll try another thing tomorrow
Penguin Terminal
There should be a folder in the main server directory called config Inside it should be a config for the mod
Elie
ElieOP2y ago
I have a new problem. The server has finished starting but it is impossible to reach it (with or without auto stop).
Elie
ElieOP2y ago
No description
Elie
ElieOP2y ago
hm
No description
Penguin Terminal
So it didn't generate a config huh. Uhh herm. Yeah, I'm not very experienced with forge modding or forge servers, so I don't exactly know. Mabye send the full logs, that might help. !logs
Carl-bot
Carl-bot2y ago
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file. Where can I find the server log? Logs are stored in <server_directory>/logs/. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log file. Some providers have a separate page for logs and may hide the "logs" folder. On Aternos: • Go to https://aternos.org/log/. On Minehut and server.pro: • Go to the "files" tab in the left menu. • Navigate to the root directory of your server. • From there navigate to /logs/latest.log. What should I do with the log? • First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing. • If you got the latest.log file or created a .txt file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/. • If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)
Admincraft Canned Responses
Elie
ElieOP2y ago
yeah but uhm
Elie
ElieOP2y ago
I think my server really likes red
No description
Elie
ElieOP2y ago
Admincraft Meta
Please use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
Requested by el2zay#0
ProGamingDk
ProGamingDk2y ago
"simplelogin"
Elie
ElieOP2y ago
I found this too, it could be interesting.
Admincraft Meta
Please use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
sleepingServer.log
Requested by el2zay#0
Elie
ElieOP2y ago
beautiful
I corrected the port I had set to 255655 instead of 25565
oooh everything works perfectly thank you for your help despite the jet lag
Elie
ElieOP2y ago
No description

Did you find this page helpful?