Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/setmaxplayers: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{MC/Exclusive|bedrock|education}}
{{exclusive|bedrock|education}}
{{Infobox command
{{Infobox command
|name=setmaxplayers
|name=setmaxplayers
Line 13: Line 13:


It has no effect on [[Minecraft:Realms]].
It has no effect on [[Minecraft:Realms]].
The command is not available on Xbox.


== Syntax ==
== Syntax ==
Line 20: Line 22:
== Arguments ==
== Arguments ==


{{MC/Argument|be=1|maxplayers: int|int}}
{{argument|be=1|maxplayers: int|int}}
:Specifies the desired new maximum number of players. If less than the current number of players or greater than 40, the argument is forced into this range.
:Specifies the desired new maximum number of players. If less than the current number of players or greater than 40, the argument is forced into this range.
:{{MC/Arg desc|be=int}}
:{{arg desc|be=int}}


== Result ==
== Result ==
Line 36: Line 38:


{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.3|Added {{MC/Cmd|setmaxplayers|link=none}}.}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.3|Added {{cmd|setmaxplayers|link=none}}.}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.17.40|dev=beta 1.17.40.20|The maximum value for {{MC/Cd|maxPlayers: int}} has been increased from 30 to 40.}}
|{{HistoryLine||1.17.40|dev=beta 1.17.40.20|The maximum value for {{cd|maxPlayers: int}} has been increased from 30 to 40.}}
}}
}}


Line 47: Line 49:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/setmaxplayers
[[Minecraft:de:Befehl/setmaxplayers]]
ja:コマンド/setmaxplayers
[[Minecraft:ja:コマンド/setmaxplayers]]
lzh:令/setmaxplayers
[[Minecraft:lzh:令/setmaxplayers]]
pt:Comandos/setmaxplayers
[[Minecraft:pt:Comandos/setmaxplayers]]
ru:Команды консоли/setmaxplayers
[[Minecraft:ru:Команды консоли/setmaxplayers]]
zh:命令/setmaxplayers
[[Minecraft:zh:命令/setmaxplayers]]

Latest revision as of 11:01, 23 July 2026

Template:Exclusive Template:Infobox command Sets the maximum number of players allowed to join a multiplayer game.

Usage

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.

This command can be executed in singleplayer mode, but has no effect until the singleplayer world where the command was executed is reopened in multiplayer mode.

It has no effect on Minecraft:Realms.

The command is not available on Xbox.

Syntax

setmaxplayers <maxPlayers: int>

Arguments

Template:Argument

Specifies the desired new maximum number of players. If less than the current number of players or greater than 40, the argument is forced into this range.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

History

Template:HistoryTable

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/setmaxplayers Minecraft:ja:コマンド/setmaxplayers Minecraft:lzh:令/setmaxplayers Minecraft:pt:Comandos/setmaxplayers Minecraft:ru:Команды консоли/setmaxplayers Minecraft:zh:命令/setmaxplayers