diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-04 15:33:52 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-04 15:33:52 +0800 |
| commit | 8ecfc525471720012f36a0016d88a4f0f4cfaa1d (patch) | |
| tree | 65782b478175abc7b2776fb52648239dfc1d500b /README.md | |
| parent | 575cc4ce6ea59ef2acee6f81181bc80f5ed4b7d9 (diff) | |
feat: add support for username, IP, and port configuration via launch arguments
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -33,10 +33,22 @@ Basic LAN multiplayer is available on the Windows build - Other players on the same LAN can discover the session from the in-game Join Game menu - Game connections use TCP port `25565` by default - LAN discovery uses UDP port `25566` -- You can override your in-game username at launch with `username.txt` This feature is based on [LCEMP](https://github.com/LCEMP/LCEMP/) +### Launch Arguments + +| Argument | Description | +|--------------------|----------------------------------------------------------------------------------------------------------------| +| `-name <username>` | Sets your in-game username | +| `-ip <address>` | Manually connect to an IP if LAN advertising does not work or if the server cannot be discovered automatically | +| `-port <port>` | Override the default port if it was changed in the source | + +Example: +``` +Minecraft.Client.exe -name Steve -ip 192.168.0.25 -port 25565 +``` + ## Controls (Keyboard & Mouse) - **Movement**: `W` `A` `S` `D` |
