API Network Player Transfer - Senither/Lilypad-Minigame-Hook GitHub Wiki

Network Player Transfer

Network Player Transfer, or NPT for short, is used to move players between servers quickly and efficiently, the Lilypad Minigame Lobby makes this easy by providing you with a single method that does it all.

When the game server shuts down, a lobby server is picked at random and all players currently connected is moved to the lobby server before the server finishes shutting down completely.

Moving players between servers

The teleportPlayer method can be used to "teleport" a player to a different server on the same network, the method takes in two arguments, both are strings.

Type Name Description
String player The name of the player you want to transfer to a new server.
String server The destination server the player should be transferred to.

Example Usage

LilypadMinigameAPI.teleportPlayer("Senither", "lobby-server-2");