feat: add bds core, locale updates and safety fixes

This commit is contained in:
2026-05-31 14:01:34 +03:00
parent d1686355e8
commit c769140913
34 changed files with 1535 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ Current version: `v0.1.0`.
| `velocity` | `/opt/minecraft/velocity` | `25577` | Java 21 | TCP | Requires Minecraft Java EULA acceptance |
| `powernukkitx` | `/opt/minecraft/powernukkitx` | `19132` | Java 21 | UDP | Requires Minecraft Java EULA acceptance |
| `nethergamesmc` | `/opt/minecraft/nethergamesmc` | `19132` | PHP | UDP | Prompts for PHP build and PocketMine-MCPE version |
| `bds` | `/opt/minecraft/bds` | `19132` | native | UDP | Official Bedrock Dedicated Server zip binary |
> Service mode `screen` is available and handled in the service layer with the current installer version.
@@ -112,9 +113,10 @@ Run output is mirrored with `tee` and saved to:
### Core selection and versions
- `--core <pmmp|paper|purpur|velocity|powernukkitx|nethergamesmc>`
- `--core <pmmp|paper|purpur|velocity|powernukkitx|nethergamesmc|bds>`
- `--mc-version <latest|version>`
- `--build <latest|tag>` (for `nethergamesmc`, PHP build)
- `--mc-version` for `bds` resolves required Bedrock package version (`latest` allowed)
- legacy aliases: `--version`, `--core-version` for MC version
### Directory and runtime
@@ -167,6 +169,24 @@ sudo bash install.sh \
3. `PocketMine-MP` clone/build flow
4. Server startup script generation
## Example for BDS
```bash
sudo bash install.sh \
--easy \
--core bds \
--dir /opt/minecraft/bds \
--mc-version latest \
--service tmux-systemd
```
`bds` flow includes:
1. resolve version from official Bedrock download page or provided tag;
2. download `bedrock-server-<version>.zip`;
3. extract/update server files;
4. generate `start.sh` and configure service.
## Update mode
`--update` switches workflow to update mode. The installer validates existing directory first and replaces server artifacts via the core-specific update path where supported.