Minecraft:Commands/defaultgamemode: Difference between revisions
More actions
Remove broken links to missing pages |
Sync: updated from Minecraft |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
}} | }} | ||
Sets the default game mode (Creative, Survival, etc.) for new players entering a [[Minecraft:multiplayer]] [[Minecraft:server]]. If in multiplayer and <code>force-gamemode</code> in the [[Minecraft:server.properties]] file is true, or if in LAN world, all online players are set to this game mode. | Sets the default [[Minecraft:game mode]] (Creative, Survival, etc.) for new players entering a [[Minecraft:multiplayer]] [[Minecraft:server]]. If in multiplayer and <code>force-gamemode</code> in the [[Minecraft:server.properties]] file is true, or if in LAN world, all online players are set to this game mode. | ||
==Syntax== | ==Syntax== | ||
| Line 44: | Line 44: | ||
|{{HistoryLine||1.3.1|dev=12w22a|Added {{cmd|defaultgamemode|link=none}}.}} | |{{HistoryLine||1.3.1|dev=12w22a|Added {{cmd|defaultgamemode|link=none}}.}} | ||
|{{HistoryLine||1.8|dev=14w05a|Added {{cd|spectator}} to {{cmd|defaultgamemode|link=none}}.}} | |{{HistoryLine||1.8|dev=14w05a|Added {{cd|spectator}} to {{cmd|defaultgamemode|link=none}}.}} | ||
|{{HistoryLine||1.19.3|dev=22w45a|Now this command accepts a [[Minecraft:Argument types|gamemode argument]], instead of literal subcommands.}} | |{{HistoryLine||1.19.3|dev=22w45a|Now this command accepts a [[Minecraft:Argument types#minecraft:gamemode|gamemode argument]], instead of literal subcommands.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/defaultgamemode | [[Minecraft:de:Befehl/defaultgamemode]] | ||
es:Comandos/defaultgamemode | [[Minecraft:es:Comandos/defaultgamemode]] | ||
ja:コマンド/defaultgamemode | [[Minecraft:fr:Commandes/defaultgamemode]] | ||
lzh:令/defaultgamemode | [[Minecraft:ja:コマンド/defaultgamemode]] | ||
pt:Comandos/defaultgamemode | [[Minecraft:lzh:令/defaultgamemode]] | ||
ru:Команды консоли/defaultgamemode | [[Minecraft:pt:Comandos/defaultgamemode]] | ||
uk:Команди консолі/defaultgamemode | [[Minecraft:ru:Команды консоли/defaultgamemode]] | ||
zh:命令/defaultgamemode | [[Minecraft:uk:Команди консолі/defaultgamemode]] | ||
[[Minecraft:zh:命令/defaultgamemode]] | |||
Latest revision as of 11:08, 29 July 2026
Template:Exclusive Template:Infobox command
Sets the default Minecraft:game mode (Creative, Survival, etc.) for new players entering a Minecraft:multiplayer Minecraft:server. If in multiplayer and force-gamemode in the Minecraft:server.properties file is true, or if in LAN world, all online players are set to this game mode.
Syntax
defaultgamemode <gamemode>
Arguments
- Specifies the default game mode.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
Examples
- To set the default game mode to survival:
defaultgamemode survival
See also
- Template:Cmd – changes a player's game mode
History
Minecraft:de:Befehl/defaultgamemode Minecraft:es:Comandos/defaultgamemode Minecraft:fr:Commandes/defaultgamemode Minecraft:ja:コマンド/defaultgamemode Minecraft:lzh:令/defaultgamemode Minecraft:pt:Comandos/defaultgamemode Minecraft:ru:Команды консоли/defaultgamemode Minecraft:uk:Команди консолі/defaultgamemode Minecraft:zh:命令/defaultgamemode