-
Notifications
You must be signed in to change notification settings - Fork 0
Commands
MEMOxiiii edited this page Sep 17, 2026
·
1 revision
The command sub-package provides ready-to-use Dragonfly commands, backed by the proxy API described in API Usage.
| Command | Description |
|---|---|
/transfer <server> |
Transfer yourself to another server |
/transfer <server> <player> |
Transfer another player to a server |
/server |
Check which server you are on |
/server <player> |
Check which server another player is on |
/servers |
List all servers connected to the proxy, with player counts |
portaldf.Enable (see Installation) registers these for you automatically, along with stale-session cleanup. If you're wiring things up manually instead of using Enable, register all commands with one call:
import portalcmd "github.com/MEMOxiiii/PortalDF/command"
portalcmd.Register(portal, srv)Register also wires up portal.SetDisconnectPlayerHandler internally, so a stale local session gets cleaned up automatically right before the proxy transfers a player in — you don't need to set that handler yourself if you're using Register (directly or via Enable).