Connect (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.3, 2.10 (transfer)

Syntax

connect %players% to [proxy|bungeecord] [server] %string%

Description

Connect a player to a server running on your proxy, or any server supporting transfers. Read below for more information. If the server is running Minecraft 1.20.5 or above, you may specify an IP and Port to transfer a player over to that server. When transferring players using an IP, the transfer will not complete if the `accepts-transfers` option isn't enabled in `server.properties` for the server specified. If the port is not provided, it will default to `25565`.

Examples

connect all players to proxy server "hub"
transfer player to server "my.server.com"
transfer player to server "localhost" on port 25566

View source