Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Minecraft Wiki
Information icon.svg
This feature is exclusive to Bedrock Edition and Education Edition. 
setmaxplayers
Permission level
required

3

Restrictions

No command blocks
Cheat only

Sets the maximum number of players allowed to join a multiplayer game.

Syntax[]

setmaxplayers <maxPlayers: int>

Arguments[]

maxplayers: int

Specifies the desired new maximum number of players. If less than the current number of players or greater than the maximum number of connections the server can accept, the argument is forced into this range. The integer must be between 1 to 30.

Result[]

Fails if maxplayers: int is omitted or isn't an integer that is between 1 to 30.

On success, displays the new maximum number of players in the chat. An additional notification message is displayed if the number specified in the command was forced into the allowed range.

Note: This command can be entered in single-player mode, but has no effect until you reopen the world in multiplayer mode.

History[]

Pocket Edition
1.1.0alpha 1.1.0.3Added /setmaxplayers.
Advertisement