/transfer Command in Minecraft Java Edition

Transfer Players to Another Server

Java EditionServer AdminPermission: Level 3Added in 1.20.5Bedrock version →

The /transfer command in Minecraft Java Edition lets server administrators send players directly to another server using a hostname and port number.

Server owners use this command to move players between different game worlds, lobbies, or server networks without making them disconnect to the main menu first.

Syntax (Java 26.3, 2 forms)

  1. /transfer <hostname>
  2. /transfer <hostname> <port> [<players>]

The forms you will use most

/transfer <hostname>
Transfers the player running the command to the specified server hostname using the default port.
/transfer <hostname> <port> [<players>]
Transfers you or the selected players to the specified server hostname and custom port number.

Arguments

ArgumentTypeWhat it means
<hostname>textA word or piece of text that specifies the address of the destination server.
<port>whole number
1 to 65535
A whole number from 1 to 65535 that specifies the network port of the destination server.
<players>target selector
players only
A player name, UUID, or target selector like @p, @a, or @s that chooses which players to transfer.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.20.5 Command added.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition also has a /transfer command available for moving players between servers.

See /transfer in Bedrock Edition →

FAQ

When was the /transfer command added to Minecraft Java Edition?

The /transfer command was added to Minecraft Java Edition in version 1.20.5 and is available up to the newest version 26.3.

What permission level is needed to use /transfer?

You must have permission level 3 (Server admin) to use this command on a server.

Can I transfer multiple players at the same time?

Yes, you can use a target selector like @a in the [] argument after the hostname and port to transfer multiple players at once.

Related commands

/ban/ban-ip/banlist/datapack/deop/fetchprofile/kick/list/op/pardon/pardon-ip/publish/reload/save-all/save-off/save-on