Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/unpublish

Command

/unpublish

Closes a singleplayer world that was opened to other players, so it is singleplayer again.

Syntax

/unpublish

Details

Permission level4: server owners and the server console
Works inExists only in singleplayer worlds (including ones opened to LAN), not on dedicated servers. Requires permission level 4 (owners), which is the host of the world with cheats enabled. Command blocks and functions run at level 2 and cannot use it.
ResultReports "Multiplayer game is now unpublished" and returns 1. All other players are disconnected.
Not publishedFails with "No multiplayer game published" if the world is not open to other players.
No argumentsThe command takes no arguments.

Examples

/unpublish

Closes your world to other players and disconnects everyone except you.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)