Commands/publish

Opens singleplayer world to the local network.

Arguments

 * The port to host on, between 0 and 65535. If not specified, a random port is chosen.

Result
This command appears in the singleplayer cheats. Cannot be used on a multiplayer server.

Fails if the world is already published to LAN, or if the port could not be bound (e.g. a reserved port, or already in use by another application).

On success, opens your singleplayer game for LAN friends to join.

History
Befehl/publish