OGTOOLS

Minecraft /unpublish command

Closes the world you opened to LAN again; connected players are disconnected.

🛡️ Server management Server owner (level 4) Needs cheats enabled Java Edition 26.3

Syntax

/unpublish

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Examples

/unpublish

Takes the world off LAN.

Good to know

  • Added in 26.2.
  • Only works in a singleplayer world or as the LAN host.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (server owner (level 4)).

Related commands

🛡️ More Server management

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.