Skip to content

Lobby Configuration

Zeb edited this page Jun 15, 2023 · 2 revisions

Creating a lobby

To create lobbies, edit run/server-1/lobbies-config.toml (example available in defaultRunData/server-1/lobbies-config.toml) to add a main lobby.

[lobbies.main]
lobbyPaths = ["main"]
maxPlayers = 10
maxLobbies = 10

Furthermore, you can configure the spawn point of the players.

[lobbies.main.instanceConfig.spawnPoint]
x = 0.0
y = 0.0
z = 0.0
yaw = 0.0
pitch = 0.0

The issue now is that the players are spawning into an empty world. Internally, Phantazm uses Minestom's AnvilLoader to load lobbies' worlds. To add a map to the lobby, go to run/server-1/lobbies/[your lobby name]/ and add the region/ folder from any minecraft world of your choosing. Your file structure should look as follows.

run/
    server-1/
        lobbies/
            main/
                region/
                    _.mca
                    _.mca
                    _.mca
                    ...
            [other lobbies, if created]
         ...