Set the Maximum Player Limit in Your Session
The /setmaxplayers command lets you change the maximum number of players allowed to join your current game session in Minecraft Bedrock Edition. This value is still limited by the total number of connections that the game natively supports.
Hosts commonly use this command when they want to open up extra slots for more friends to join a multiplayer world without restarting the game. It is also useful for temporarily lowering the limit to keep extra guests out during a private building session or mini-game.
/setmaxplayers <maxPlayers: int>Set max players
| Argument | Type | What it means |
|---|---|---|
maxPlayers | int | An `integer` that defines the new max number of players. Subject to the maximum number of connections the game allows. |
/setmaxplayers 1Sets the session limit to a single player so nobody else can join while you work alone.
/setmaxplayers 2Limits the world to two players for a private co-op survival session with one friend.
/setmaxplayers 4Adjusts the maximum player count to four for a small group adventure.
/setmaxplayers 8Sets the player capacity to eight for a standard multiplayer session.
/setmaxplayers 10Increases the limit to ten players to accommodate two five-player teams in a custom match.
/setmaxplayers 30Raises the session limit to thirty players for a large gathering, up to the maximum connections your game allows.
Minecraft Java Edition does not have a /setmaxplayers command.
Only the host of the game session has the required permission level to run this command, and cheats must be turned on in the world.
You can enter any integer, but the actual limit will be capped at the maximum number of connections that your game allows.
No, this command is exclusive to Minecraft Bedrock Edition and does not exist in Java Edition.
/allowlist/changesetting/deop/kick/list/op/permission/save/stop/transfer/wsserver