Minecraft:Commands/fetchprofile: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
| name = fetchprofile | | name = fetchprofile | ||
| Line 9: | Line 9: | ||
Fetches the profile of the target. It works asynchronously as the operation might take some time. | Fetches the profile of the target. It works asynchronously as the operation might take some time. | ||
After successful completion, a message will be printed that lets users copy the contents of a fully resolved {{ | After successful completion, a message will be printed that lets users copy the contents of a fully resolved {{MC/Cd|minecraft:profile}} component or {{MC/Cmd|give @s minecraft:player_head}} with said component. | ||
== Syntax == | == Syntax == | ||
| Line 17: | Line 17: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|name|string}} | ||
: Specifies a player name (player does not need to be online), case-insensitive. | : Specifies a player name (player does not need to be online), case-insensitive. | ||
: {{ | : {{MC/Arg desc|je=string}} | ||
{{ | {{MC/Argument|id|uuid}} | ||
: Specifies [[Minecraft:UUID]] of a player (player does not need to be online). | : Specifies [[Minecraft:UUID]] of a player (player does not need to be online). | ||
: {{ | : {{MC/Arg desc|je=uuid}} | ||
{{ | {{MC/Argument|target|entity}} | ||
: Specifies an entity (player must be online). | : Specifies an entity (player must be online). | ||
: {{ | : {{MC/Arg desc|je=entity|amount=single|type=entities}} | ||
== Result == | == Result == | ||
{{Result table|onlyje=1}} | {{Result table|onlyje=1}} | ||
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}} | {{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}} | ||
{{Result table|{{ | {{Result table|{{MC/Cd|<entity>}} (in {{MC/Cd|entity <entity>}} mode) fails to resolve to a single entity (named player must be online).|fail}} | ||
{{Result table|{{ | {{Result table|{{MC/Cd|<entity>}} (in {{MC/Cd|entity <entity>}} mode) resolves to an entity without a profile.|fail}} | ||
{{Result table|Failed to resolve the player profile.|fail}} | {{Result table|Failed to resolve the player profile.|fail}} | ||
{{Result table|succeed}} | {{Result table|succeed}} | ||
| Line 39: | Line 39: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On success|1|1|1}} | {{MC/Output table|edition=je|On success|1|1|1}} | ||
{{Output table|edition=je|On fail in {{ | {{Output table|edition=je|On fail in {{MC/Cd|name <name>}} and {{MC/Cd|id <id>}} modes|1|1|1}} | ||
{{Output table|edition=je|On fail in {{ | {{Output table|edition=je|On fail in {{MC/Cd|entity <entity>}} mode{{MC/Verify|Is there a way for a profile fetch in this mode to fail asynchronously?}}|0|0|0}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.21.9|dev=25w34a|Added {{ | |{{HistoryLine||1.21.9|dev=25w34a|Added {{MC/Cmd|fetchprofile|link=none}}.}} | ||
|{{HistoryLine|||dev=Pre-Release 1|Now also prints a clickable text to summon a mannequin with the resolved profile.}} | |{{MC/HistoryLine|||dev=Pre-Release 1|Now also prints a clickable text to summon a mannequin with the resolved profile.}} | ||
|{{HistoryLine||26.1|dev=snap8|Added {{ | |{{HistoryLine||26.1|dev=snap8|Added {{MC/Cmd|fetchprofile entity|link=none}}.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/fetchprofile | de:Befehl/fetchprofile | ||
Latest revision as of 20:09, 9 April 2026
Script error: No such module "Exclusive". Template:Infobox command Fetches the contents of a player profile from Minecraft servers.
Usage
Fetches the profile of the target. It works asynchronously as the operation might take some time.
After successful completion, a message will be printed that lets users copy the contents of a fully resolved
- REDIRECT Template:Code
Template:Redr component or
- REDIRECT Template:Command
Template:Redr with said component.
Syntax
fetchprofile name <name>fetchprofile id <id>fetchprofile entity <entity>
Arguments
<name>: string
- Specifies a player name (player does not need to be online), case-insensitive.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|string}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
<id>: uuid
- Specifies Minecraft:UUID of a player (player does not need to be online).
- {{#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|}}
<target>: entity
- Specifies an entity (player must be online).
- {{#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|}}
Result
Template:Result table Template:Result table Template:Result table 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:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#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}} Template:Output table Template:Output table
{{#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/fetchprofile ja:コマンド/fetchprofile ru:Команды консоли/fetchprofile pt:Comandos/fetchprofile zh:命令/fetchprofile