Minecraft:Commands/debugconfig: Difference between revisions
More actions
imported>Nethonos de-interwiki |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{MC/Distinguish|Commands/debugmobspawning|Commands/debugpath}} | ||
{{ | {{MC/Exclusive|java}} | ||
{{ | {{MC/Debug warning}} | ||
{{Infobox command | {{Infobox command | ||
| name = debugconfig | | name = debugconfig | ||
| oplevel = 3 | | oplevel = 3 | ||
| others = Dedicated server and <br /><code>-DMC_DEBUG_DEV_COMMANDS</code> | | others = Dedicated server and <br /><code>-DMC_DEBUG_DEV_COMMANDS</code> debug property | ||
}} | }} | ||
'''/debugconfig''' is a command that can be enabled with the | '''/debugconfig''' is a command that can be enabled with the debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>. It allows sending a player back to configuration phase. | ||
== Syntax == | == Syntax == | ||
| Line 19: | Line 19: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|target|entity}} | ||
: Only for {{ | : Only for {{MC/Cd|debugconfig config}}. Specifies the target player to switch to the configuration phase. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=single|type=player}} | ||
{{ | {{MC/Argument|target|uuid}} | ||
: Only for {{ | : Only for {{MC/Cd|debugconfig unconfig}} and {{MC/Cd|debugconfig dialog}}. Specifies the UUID of a connected player in the configuration phase to fully connect to the server or to show a dialog to. | ||
: {{ | : {{MC/Arg desc|je=uuid}} | ||
{{ | {{MC/Argument|dialog|dialog}} | ||
: Specifies the dialog to show to a player in the configuration phase. | : Specifies the dialog to show to a player in the configuration phase. | ||
: Must be either: | : Must be either: | ||
:* A namespaced ID of a dialog defined in a data pack (e.g., {{ | :* A namespaced ID of a dialog defined in a data pack (e.g., {{MC/Code|custom:my_dialog}} or {{MC/Code|minecraft:server_links}}). These are stored in the {{MC/Cd|minecraft:dialog}} registry. | ||
:* An inline | :* An inline SNBT defining the dialog structure directly in the command. See {{slink|Dialog|Dialog format}} for the structures. | ||
== Result == | == Result == | ||
| Line 38: | Line 38: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|cmd=/debugconfig config <target>|On success|1|1|1}} | {{MC/Output table|edition=je|cmd=/debugconfig config <target>|On success|1|1|1}} | ||
{{Output table|cmd=/debugconfig unconfig <target>|On success|1|1|1 if a player in the configuration phase was found and fully connected, 0 otherwise}} | {{MC/Output table|cmd=/debugconfig unconfig <target>|On success|1|1|1 if a player in the configuration phase was found and fully connected, 0 otherwise}} | ||
{{Output table|cmd=/debugconfig dialog <target> <dialog>|On success|1|1|1 if a player in the configuration phase was found and shown a dialog, 0 otherwise}} | {{MC/Output table|cmd=/debugconfig dialog <target> <dialog>|On success|1|1|1 if a player in the configuration phase was found and shown a dialog, 0 otherwise}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.21.9|dev=Pre-Release 1|Added | |{{MC/HistoryLine||1.21.9|dev=Pre-Release 1|Added debug property <code>-DMC_DEBUG_DEV_COMMANDS</code>, making the command accessible in the vanilla game.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/debugconfig | |||
zh:命令/debugconfig | |||
Latest revision as of 20:09, 9 April 2026
Template:Hatnote Script error: No such module "Exclusive". Template:Warning Template:Infobox command
/debugconfig is a command that can be enabled with the debug property -DMC_DEBUG_DEV_COMMANDS. It allows sending a player back to configuration phase.
Syntax
debugconfig config <target>
- Removes the target player's avatar from the world and switches their connection back to the configuration phase. While in this state, the player's client sees a "Reconfiguring..." screen with a "Disconnect" button that is initially grayed out, and is enabled after 20 seconds.
debugconfig unconfig <target>
- Fully connects the player with the target UUID back into the server, if a player with the target UUID is connected and in the configuration phase.
debugconfig dialog <target> <dialog>
- Shows the player with the target UUID the specified dialog, if a player with the target UUID is connected and in the configuration phase.
Arguments
<target>: entity
- Only for
- REDIRECT Template:Code
Template:Redr. Specifies the target player to switch to the configuration phase.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
<target>: uuid
- Only for
- REDIRECT Template:Code
Template:Redr and
- REDIRECT Template:Code
Template:Redr. Specifies the UUID of a connected player in the configuration phase to fully connect to the server or to show a dialog to.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|uuid}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
<dialog>: dialog
- Specifies the dialog to show to a player in the configuration phase.
- Must be either:
- A namespaced ID of a dialog defined in a data pack (e.g.,
custom:my_dialogorminecraft:server_links). These are stored in the
- A namespaced ID of a dialog defined in a data pack (e.g.,
- REDIRECT Template:Code
Template:Redr registry.
- An inline SNBT defining the dialog structure directly in the command. See Template:Slink for the structures.
Result
Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/debugconfig config <target>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1 if a player in the configuration phase was found and fully connected, 0 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/debugconfig unconfig <target>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1 if a player in the configuration phase was found and shown a dialog, 0 otherwise}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/debugconfig dialog <target> <dialog>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
History
de:Befehl/debugconfig zh:命令/debugconfig