
Command
/unpublish
Closes a singleplayer world that was opened to other players, so it is singleplayer again.
| /unpublish |
| Permission level | 4: server owners and the server console |
| Works in | Exists 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. |
| Result | Reports "Multiplayer game is now unpublished" and returns 1. All other players are disconnected. |
| Not published | Fails with "No multiplayer game published" if the world is not open to other players. |
| No arguments | The command takes no arguments. |
/unpublishCloses your world to other players and disconnects everyone except you.
