A 12-Hour server limit. Are there any advantages?

Hello!
I have noticed in a minecraft server, and one of these roblox games, there is a 12 hour server limit which would either warp everyone into a new server or kick them after 12 hours of the server being created. I think i can implement this but are there any advantages/disadvantages to this?

Let me know if this does not belong here.

3 Likes

As far as I am aware, people like to do this especially on Minecraft because Minecraft can have memory leak problems. Restarting it will clear out memory and make it run smoother only if there is a memory leak.

6 Likes

In addition to what Jarod said, another reason I’ve seen is to fix servers whose scripts have broken over time. It’s a horrid practice but I guess it’s an “easy” solution if the dev doesn’t know any other way to handle it. Overall just don’t do server time limits. There is always a better solution to whatever problem they’re fixing.

6 Likes

Don’t do it. If I were to join a server that had 1 minute left, it would be frustrating. In the end, it’s not worth it.

2 Likes

Strongly disagree. The game’s code might have data allocated that hasn’t gone through garbage collection. New programmers might write things like strong tables that will never be GCed. And I don’t think players will mind being teleported to a new server instance rather than the game be laggy. Sure if the programmer is confident that their code cleans up and destroys instances properly then there’s no need for it.

The only disadvantage is that: the programmer might not learn since they know of this technique instead of writing good code. Having the player teleported to a new server might not frustrate them that much since they’ll know that the server they’ll be hopping to might perform better.

2 Likes

I don’t really see a reason to have a limit to how long a server can run. Imagine joining when the server has 5 seconds left to run. That would be awful. Just design your game so memory leaks don’t happen (Prevent them).

2 Likes