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

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{exclusive|java}}
{{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 {{cd|minecraft:profile}} component or {{cmd|give @s minecraft:player_head}} with said component.
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 ==
{{argument|name|string}}
{{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.
: {{arg desc|je=string}}
: {{MC/Arg desc|je=string}}


{{argument|id|uuid}}
{{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).
: {{arg desc|je=uuid}}
: {{MC/Arg desc|je=uuid}}


{{argument|target|entity}}
{{MC/Argument|target|entity}}
: Specifies an entity (player must be online).
: Specifies an entity (player must be online).
: {{arg desc|je=entity|amount=single|type=entities}}
: {{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|{{cd|<entity>}} (in {{cd|entity <entity>}} mode) fails to resolve to a single entity (named player must be online).|fail}}
{{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|{{cd|<entity>}} (in {{cd|entity <entity>}} mode) resolves to an entity without a profile.|fail}}
{{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 {{cd|name <name>}} and {{cd|id <id>}} modes|1|1|1}}
{{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 {{cd|entity <entity>}} mode{{Verify|Is there a way for a profile fetch in this mode to fail asynchronously?}}|0|0|0}}
{{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 {{cmd|fetchprofile|link=none}}.}}
|{{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 {{cmd|fetchprofile entity|link=none}}.}}
|{{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

  1. REDIRECT Template:Code

Template:Redr component or

  1. 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

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

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