aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-04 16:18:47 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-04 17:29:43 +0800
commitd112090fde200c545a70ec5dc33fe91cca0f26ec (patch)
tree9adf5fea35a3e1bccb40d94638fdf63f45baedd5 /README.md
parent8ecfc525471720012f36a0016d88a4f0f4cfaa1d (diff)
feat: headless server
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index e6583e76..a84ee508 100644
--- a/README.md
+++ b/README.md
@@ -41,14 +41,22 @@ This feature is based on [LCEMP](https://github.com/LCEMP/LCEMP/)
| 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 |
+| `-server` | Launches a headless server instead of the client |
+| `-ip <address>` | Client mode: manually connect to an IP. Server mode: override the bind IP from `server.properties` |
+| `-port <port>` | Client mode: override the join port. Server mode: override the listen port from `server.properties` |
Example:
```
Minecraft.Client.exe -name Steve -ip 192.168.0.25 -port 25565
```
+Headless server example:
+```
+Minecraft.Client.exe -server -ip 0.0.0.0 -port 25565
+```
+
+The headless server also reads and writes `server.properties` in the working directory. If `-ip` / `-port` are omitted in `-server` mode, it falls back to `server-ip` / `server-port` from that file. Dedicated-server host options such as `trust-players`, `pvp`, `fire-spreads`, `tnt`, `difficulty`, `gamemode`, `spawn-animals`, and `spawn-npcs` are persisted there as well.
+
## Controls (Keyboard & Mouse)
- **Movement**: `W` `A` `S` `D`