Server Transfer
Transfer players to another server in the network.
Basic Transfer
Section titled “Basic Transfer”playerRef.referToServer("play.example.com", 25565);Transfer with Data
Section titled “Transfer with Data”Pass custom data (byte[]) that the receiving server can read.
byte[] customData = ...; // max 4096 bytesplayerRef.referToServer("play.example.com", 25565, customData);Constraints:
- Port must be between 1 and 65535
- Custom data cannot exceed 4096 bytes
Protocol Details
Section titled “Protocol Details”For full details on the transfer protocol, packet structure, and receiving transfers, see Server Transfer.