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/defaultgamemode: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{MC/Exclusive|java}}
{{exclusive|java}}
{{Infobox command
{{Infobox command
|name=defaultgamemode
|name=defaultgamemode
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 13: Line 13:
==Arguments==
==Arguments==


{{MC/Argument|gamemode|gamemode}}
{{argument|gamemode|gamemode}}
: Specifies the default game mode.  
: Specifies the default game mode.  
:{{arg_desc|je=gamemode}}
:{{arg_desc|je=gamemode}}
Line 25: Line 25:


== Output ==
== Output ==
{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|If in multiplayer, and <code>force-gamemode</code> in the [[Minecraft:server.properties]] file is true|1|1|the number of online players whose game mode is changed}}
{{Output table|edition=je|If in multiplayer, and <code>force-gamemode</code> in the [[Minecraft:server.properties]] file is true|1|1|the number of online players whose game mode is changed}}
{{MC/Output table|edition=je|If in LAN world|1|1|the number of online players whose game mode is changed}}
{{Output table|edition=je|If in LAN world|1|1|the number of online players whose game mode is changed}}
{{MC/Output table|Otherwise|1|1|0}}
{{Output table|Otherwise|1|1|0}}
{{MC/Output table}}
{{Output table}}


==Examples==
==Examples==
Line 37: Line 37:
==See also==
==See also==


:{{MC/Cmd|gamemode}} – changes a player's game mode
:{{cmd|gamemode}} – changes a player's game mode


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.3.1|dev=12w22a|Added {{MC/Cmd|defaultgamemode|link=none}}.}}
|{{HistoryLine||1.3.1|dev=12w22a|Added {{cmd|defaultgamemode|link=none}}.}}
|{{HistoryLine||1.8|dev=14w05a|Added {{MC/Cd|spectator}} to {{MC/Cmd|defaultgamemode|link=none}}.}}
|{{HistoryLine||1.8|dev=14w05a|Added {{cd|spectator}} to {{cmd|defaultgamemode|link=none}}.}}
|{{MC/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|gamemode argument]], instead of literal subcommands.}}
}}
}}
== Navigation ==
== Navigation ==
{{MC/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:05, 3 July 2026