/setmaxplayers Command in Minecraft Bedrock Edition

Set the Maximum Player Limit in Your Session

Bedrock EditionServer AdminPermission: HostCheats: Yes

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.

Syntax (1 form)

  1. /setmaxplayers <maxPlayers: int>

    Set max players

Arguments

ArgumentTypeWhat it means
maxPlayersintAn `integer` that defines the new max number of players. Subject to the maximum number of connections the game allows.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a /setmaxplayers command.

FAQ

Who can use the /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.

Can I set the maximum players to any number I want?

You can enter any integer, but the actual limit will be capped at the maximum number of connections that your game allows.

Is the /setmaxplayers command available in Minecraft Java Edition?

No, this command is exclusive to Minecraft Bedrock Edition and does not exist in Java Edition.

Related commands

/allowlist/changesetting/deop/kick/list/op/permission/save/stop/transfer/wsserver