Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/transfer

Command

/transfer

Sends players from this server to another server.

Syntax

/transfer <hostname> [<port> [<players>]]

Arguments

ArgumentKind of valueWhat to type
<hostname>TextThe address of the server to send the players to. Put it in quotes if it contains characters other than letters, digits, dots, hyphens, underscores and plus signs. One word, or text in quotes.
<port>Whole numberThe port of the other server, from 1 to 65535. Default 25565.
<players>Target selectorThe players to transfer. Any number of players, given as a selector or a player name. Default: the player running the command. One or more players.

Details

Permission level3: server operators with level 3 or higher
Works inExists only on dedicated multiplayer servers, not in singleplayer or LAN worlds. Requires permission level 3 (admins): server operators of level 3 or higher and the server console. Command blocks and functions run at level 2 and cannot use it.
ResultReports which player, or how many players, are being transferred and the address and port they are sent to. Returns the number of players transferred.
Default portWithout a port, 25565 is used.
Default playersWithout players, the player running the command is transferred, so from the server console the players must be given.
No playersFails with "Must specify at least one player to transfer" if no player is selected.

Examples

/transfer play.example.com

Sends you to play.example.com on port 25565.

/transfer play.example.com 25566 @a

Sends every player to play.example.com on port 25566.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)