Launcher: play straight into a world or server, and the Multiplayer list

Each world on Home gets Play (the game starts with --world <folder>), and
Home lists the selected instance's servers from the game's own servers.dat:
Join starts the game with --server <address>, Add server and Remove change
the file. server_list reads and writes it as vanilla's ServerList does
(uncompressed NBT, a new file then servers.dat_old) and writes every entry
back with all its fields, the hidden Direct Connection ones too.

CLI: `multiplayer [list|add|remove] [--instance]`, `play --server`;
MCP: play takes `server`; `multiplayer remove` needs confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-27 01:56:41 +01:00
parent c70e2fae74
commit 4b761abcb2
14 changed files with 744 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ pub const DESTRUCTIVE: &[&str] = &[
"account sign-out",
"data delete",
"worlds delete",
"multiplayer remove",
];
/// Commands that send something or reach other people: only when the player asks.