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/transfer: 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/For|the old version of this command on [[Minecraft:Bedrock Edition]]|Commands/transferserver}}
{{For|the old version of this command on [[Minecraft:Bedrock Edition]]|Commands/transferserver}}
{{MC/For|the former command on [[Minecraft:Minecraft Education]]|Commands/transfer (Education)}}
{{For|the former command on [[Minecraft:Minecraft Education]]|Commands/transfer (Education)}}


{{Infobox command
{{Infobox command
Line 8: Line 8:
* 3 {{only|java|short=1}}
* 3 {{only|java|short=1}}
* 4 {{only|bedrock|short=1}}
* 4 {{only|bedrock|short=1}}
| others = Cheat only{{only|bedrock|short=1}}
| others = [[Minecraft:Cheat]] only{{only|bedrock|short=1}}
}}
}}
Triggers a transfer of a player to another server.
Triggers a transfer of a player to another server.
Line 21: Line 21:
== Arguments ==
== Arguments ==


{{MC/BE|short=1}}: {{MC/Argument|be=1|pfidOrMSA: string|basic_string}}
{{BE|short=1}}: {{argument|be=1|pfidOrMSA: string|basic_string}}
: The player to transfer. Can be the microsoft account name (player name), or the PlayFab ID (shown when a player joins in or disconnects from the server).
: The player to transfer. Can be the microsoft account name (player name), or the PlayFab ID (shown when a player joins in or disconnects from the server).
: {{MC/Arg desc|be=string}}
: {{arg desc|be=string}}


{{MC/Argument|hostname|string|server: string|basic_string}}
{{argument|hostname|string|server: string|basic_string}}
: Describes the hostname of the server to connect to.
: Describes the hostname of the server to connect to.
: {{MC/Arg desc|je=string|type=phrase|be=string}}
: {{arg desc|je=string|type=phrase|be=string}}


{{MC/Argument|port|integer|port: int|int}}
{{argument|port|integer|port: int|int}}
: Denotes the port number of the server to connect to. {{MC/In|java}}, if not specified, defaults to {{MC/Cd|25565}}.
: Denotes the port number of the server to connect to. {{IN|java}}, if not specified, defaults to {{cd|25565}}.
: {{MC/Arg desc|je=integer|min=1|max=65535|be=int}} {{MC/In|be}}, it should be between 0 and 65535 (inclusive).
: {{arg desc|je=integer|min=1|max=65535|be=int}} {{IN|be}}, it should be between 0 and 65535 (inclusive).


{{MC/JE|short=1}}: {{MC/Argument|players|entity}}
{{JE|short=1}}: {{argument|players|entity}}
: The player(s) to transfer. If not specified, defaults to the executor player.
: The player(s) to transfer. If not specified, defaults to the executor player.
: {{MC/Arg desc|je=entity|type=players|amount=multiple}}
: {{arg desc|je=entity|type=players|amount=multiple}}


== Result ==
== Result ==
Line 50: Line 50:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|cmd=/transfer <hostname> <port>|On success|1|1|1}}
{{Output table|cmd=/transfer <hostname> <port>|On success|1|1|1}}
{{MC/Output table|cmd=/transfer <hostname> <port> <players>|On success|1|1|the number of targeted players.}}
{{Output table|cmd=/transfer <hostname> <port> <players>|On success|1|1|the number of targeted players.}}
{{MC/Output table}}
{{Output table}}


== Examples ==
== Examples ==
* {{MC/In|java}}, transfer the player executing the command to port {{MC/Cd|1630}} of the server {{MC/Cd|localhost}}: {{MC/Cd|transfer localhost 1630}}.
* {{IN|java}}, transfer the player executing the command to port {{cd|1630}} of the server {{cd|localhost}}: {{cd|transfer localhost 1630}}.
* {{MC/In|java}}, transfer the player Steve to the server {{MC/Cd|minecraft.server.example:25565}}: {{MC/Cd|transfer minecraft.server.example 25565 Steve}}.
* {{IN|java}}, transfer the player Steve to the server {{cd|minecraft.server.example:25565}}: {{cd|transfer minecraft.server.example 25565 Steve}}.
* {{MC/In|Bedrock}}, transfer the player Steve to the server {{MC/Cd|minecraft.server.example:19132}}: {{MC/Cd|transfer Steve minecraft.server.example 19132}}
* {{IN|Bedrock}}, transfer the player Steve to the server {{cd|minecraft.server.example:19132}}: {{cd|transfer Steve minecraft.server.example 19132}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.20.5|dev=24w04a|Added {{MC/Cmd|transfer|link=none}}.}}
|{{HistoryLine||1.20.5|dev=24w04a|Added {{cmd|transfer|link=none}}.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.20.30|dev=Preview 1.20.30.22|Added {{MC/Cmd|transfer|link=none}}.}}
|{{HistoryLine||1.20.30|dev=Preview 1.20.30.22|Added {{cmd|transfer|link=none}}.}}
}}
}}


Line 79: Line 79:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/transfer
[[Minecraft:de:Befehl/transfer]]
ja:コマンド/transfer
[[Minecraft:fr:Commandes/transfer]]
lzh:令/transfer
[[Minecraft:ja:コマンド/transfer]]
pt:Comandos/transfer
[[Minecraft:lzh:令/transfer]]
ru:Команды консоли/transfer (Java Edition)
[[Minecraft:pt:Comandos/transfer]]
zh:命令/transfer
[[Minecraft:ru:Команды консоли/transfer (Java Edition)]]
[[Minecraft:zh:命令/transfer]]

Latest revision as of 11:08, 29 July 2026

Template:For Template:For

Template:Infobox command Triggers a transfer of a player to another server.

Syntax

  • Java Edition
transfer <hostname> [<port>] [<players>]
  • Bedrock Edition
transfer <pfidOrMSA: string> <server: string> <port: int>

Arguments

Template:BE: Template:Argument

The player to transfer. Can be the microsoft account name (player name), or the PlayFab ID (shown when a player joins in or disconnects from the server).
Template:Arg desc

Template:Argument

Describes the hostname of the server to connect to.
Template:Arg desc

Template:Argument

Denotes the port number of the server to connect to. Template:IN, if not specified, defaults to Template:Cd.
Template:Arg desc Template:IN, it should be between 0 and 65535 (inclusive).

Template:JE: Template:Argument

The player(s) to transfer. If not specified, defaults to the executor player.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table 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

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/transfer Minecraft:fr:Commandes/transfer Minecraft:ja:コマンド/transfer Minecraft:lzh:令/transfer Minecraft:pt:Comandos/transfer Minecraft:ru:Команды консоли/transfer (Java Edition) Minecraft:zh:命令/transfer