Freeze players until there are a minimum number of players online. Tested on 1.20.1 but will probably work on any older version of MC as well.
A simple Minecraft plugin that restricts player movement until a specified number of players are online.
minimumplayers-0.x.x.jar in your server's plugins folder.config.yml for the plugin.config.yml to change things like the minimum player count.config.yml parameters:
minimumNumberOfPlayers: The minimum number of players required for movement to be unlocked. Default value is 3.allowGracePeriod: Whether to allow a grace period (i.e. allow players to move for X minutes after the playercount dropped below minimum).gracePeriodMinutes: The number of minutes to allow movement after the playercount dropped below minimum. Default value is 5 minutes.sendMessageWhenFrozen: Whether to send a message when a player tries to move while the server is frozen.frozenMessageIntervalSeconds: The number of seconds to wait before sending another message to a player who is trying to move while the server is frozen. Default value is 5 seconds. Increase the number if you don't want to spam players.Contributions, issues, and feature requests are welcome!
This project is distributed under the MIT license.