Skip to content

Server Transfer

Transfer players to another server in the network.

playerRef.referToServer("play.example.com", 25565);

Pass custom data (byte[]) that the receiving server can read.

byte[] customData = ...; // max 4096 bytes
playerRef.referToServer("play.example.com", 25565, customData);

Constraints:

  • Port must be between 1 and 65535
  • Custom data cannot exceed 4096 bytes

For full details on the transfer protocol, packet structure, and receiving transfers, see Server Transfer.