Minecraft:Commands/transfer: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
{{ | {{For|the old version of this command on [[Minecraft:Bedrock Edition]]|Commands/transferserver}} | ||
{{ | {{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 == | ||
{{ | {{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). | ||
: {{ | : {{arg desc|be=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. | ||
: {{ | : {{arg desc|je=string|type=phrase|be=string}} | ||
{{ | {{argument|port|integer|port: int|int}} | ||
: Denotes the port number of the server to connect to. {{ | : Denotes the port number of the server to connect to. {{IN|java}}, if not specified, defaults to {{cd|25565}}. | ||
: {{ | : {{arg desc|je=integer|min=1|max=65535|be=int}} {{IN|be}}, it should be between 0 and 65535 (inclusive). | ||
{{ | {{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. | ||
: {{ | : {{arg desc|je=entity|type=players|amount=multiple}} | ||
== Result == | == Result == | ||
| Line 50: | Line 50: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|cmd=/transfer <hostname> <port>|On success|1|1|1}} | ||
{{ | {{Output table|cmd=/transfer <hostname> <port> <players>|On success|1|1|the number of targeted players.}} | ||
{{ | {{Output table}} | ||
== Examples == | == Examples == | ||
* {{ | * {{IN|java}}, transfer the player executing the command to port {{cd|1630}} of the server {{cd|localhost}}: {{cd|transfer localhost 1630}}. | ||
* {{ | * {{IN|java}}, transfer the player Steve to the server {{cd|minecraft.server.example:25565}}: {{cd|transfer minecraft.server.example 25565 Steve}}. | ||
* {{ | * {{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 | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||1.20.5|dev=24w04a|Added {{ | |{{HistoryLine||1.20.5|dev=24w04a|Added {{cmd|transfer|link=none}}.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||1.20.30|dev=Preview 1.20.30.22|Added {{ | |{{HistoryLine||1.20.30|dev=Preview 1.20.30.22|Added {{cmd|transfer|link=none}}.}} | ||
}} | }} | ||
| Line 79: | Line 79: | ||
== Navigation == | == Navigation == | ||
{{ | {{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: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
- Describes the hostname of the server to connect to.
- Template:Arg desc
- 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
- Template:IN, transfer the player executing the command to port Template:Cd of the server Template:Cd: Template:Cd.
- Template:IN, transfer the player Steve to the server Template:Cd: Template:Cd.
- Template:IN, transfer the player Steve to the server Template:Cd: Template:Cd
History
Java Edition
Bedrock Edition
External links
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