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
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
read pinned message in general
Thanks, but I don't think I've found the solution to my problem.
"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
yup but the post didn't help me
ah
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
?
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 !
That is kinda the point of it though...
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 ?
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
ok and for the file it's ok like that ?
serverOnlineMode false?
We have a crack player
!offline
I put it on true.
Because piracy is bad m'kay
looks fine, does it work?
nope
2 fans at 3700 rpm each...
is the mc server itself running?
yeah I joined it with a friend
did you install the sleeping server mod?
Also send the config of the mod
Yes
The config oh the mod ??
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
Idk
I'll try another thing tomorrow
There should be a folder in the main server directory called config
Inside it should be a config for the mod
I have a new problem. The server has finished starting but it is impossible to reach it (with or without auto stop).
hm
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
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
yeah but uhm
I think my server really likes red
Please use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
latest.log
Requested by el2zay#0
"simplelogin"
I found this too, it could be interesting.
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
beautiful
I corrected the port I had set to 255655 instead of 25565oooh everything works perfectly thank you for your help despite the jet lag