Hello all! I am curious on how to do what the title says. I believe I have thought of a way that would work, and I would like some feedback on this idea. I have looked around and seen some methods of locking a server, but I have never heard of doing this:
What if you locked a server by doing the following:
You run a method that sets the max players equal to the amount of players required, and after this event, a while true do loop will then update the max players every time someone leaves. For example, the player limit is reached, a game is started, and then someone leaves. The max player limit is then reduced to playerLimit - 1. Would this work?