Commands/setmaxplayers

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

Arguments
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
命令/setmaxplayers