Sleep mode
serversLet a server turn itself off when nobody is playing and turn back on when someone tries to join.sleep mode sleeping turn off when empty turn on when joining save resources whitelist motdenSleep mode saves your machine’s resources. The server turns itself off after some time with nobody playing and turns back on when someone tries to join. While it sleeps, the Minecraft server list still shows it, with a message saying it is asleep.
There are two independent options. You can use either one or both together.
Before you start
Section titled “Before you start”- The agent must be up to date. If it is older, the launcher shows Update the Tegra Agent to use sleep mode instead of the options.
- Sleep mode is set for each server, not for the agent.
Turn on sleep mode
Section titled “Turn on sleep mode”- In the launcher, open Studio and then Servers.
- Open the server and go to the Settings tab.
- In the Sleep mode section, choose your options:
- Turn off when empty: turn the switch on and set how many minutes the server waits with nobody playing before turning off. The countdown also runs right after it starts, so if nobody joins in that time, it turns off.
- Turn on when someone tries to join: choose Anyone or Only whitelisted players. With Off, the server only starts from the Start button.
- If you like, adjust the messages (see below).
- Select Save sleep mode and confirm the changes.
What players see
Section titled “What players see”While the server sleeps, the Minecraft server list shows the sleeping message instead of the usual description.
When someone tries to join, Minecraft shows the message that the server is waking up, with the estimated time, and the server starts. Wait that long and join again. Once it has started, the list shows the usual description again.
It works with vanilla servers and with modpacks.
Messages
Section titled “Messages”When you turn on sleep mode, the launcher fills in the messages in the app’s language. You can change any of them. If you switch the launcher’s language later, the saved messages stay as they are.
| Field | When it shows | Default text |
|---|---|---|
| MOTD while asleep | In the Minecraft server list, while the server sleeps | 💤 Server sleeping. Join to wake it up! |
| Message when someone tries to join | To whoever tries to join and wakes the server | Server waking up, come back in ~{minutes} min. |
| Message for those who cannot turn it on | To whoever is not on the whitelist, with Only whitelisted players | You cannot turn this server on. Ask the owner. |
| Message when the server cannot start | After 3 tries to start within 10 minutes | The server is having trouble starting. Let the owner know. |
Use {minutes} in the join message to show the estimated time until the server is on. Tegra works it out from the last time the server started.
Only whitelisted players
Section titled “Only whitelisted players”With this option, only the players in the server’s whitelist.json turn it on by trying to join. Everyone else gets the message for those who cannot turn it on.
If the whitelist is empty, the launcher warns you: nobody will be able to turn the server on by joining, only from the Start button.
In the launcher and on Discord
Section titled “In the launcher and on Discord”- While the server sleeps, the launcher shows the Sleeping state. The Start button keeps working at any time.
- If you stop the server yourself with Turn on when someone tries to join active, the launcher reminds you that someone can turn it back on by joining.
- The Discord bot panel shows Sleeping, with the Start button.
- The Activity list records when the server turned off for having nobody online and who turned it on by trying to join.
Common problems
Section titled “Common problems”- The server does not turn itself off: check that Turn off when empty is on and that nobody is on the server. If Tegra cannot see how many players are online, it leaves the server on so nobody gets kicked.
- I tried to join and the server did not start: check the Turn on when someone tries to join option and, with Only whitelisted players, that your nick is in
whitelist.json. - The message that the server cannot start shows up: the server failed to start several times in a row. Open the Console in the launcher to see the error. The Start button is still available.
- The launcher says the port is in use: another program or another server is using the same port. Change the port of one of them.