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

@@ -69,7 +69,7 @@ Usage:
curl -fsSL https://deploy.example.com/install.sh | sudo bash -s -- [options]
Options:
--core <pmmp|paper|purpur|velocity|powernukkitx|nethergamesmc>
--core <pmmp|paper|purpur|velocity|powernukkitx|nethergamesmc|bds>
--core-version <latest|version> (legacy alias for mc-version)
--dir <path>
--port <number>
@@ -313,7 +313,7 @@ resolve_core_defaults() {
local check_fn="core_default_port_${CORE}"
if [[ "$(type -t "$check_fn" 2>/dev/null)" != "function" ]]; then
fail "$(t unsupported_core "$CORE" "pmmp,paper,purpur,velocity,powernukkitx,nethergamesmc" "${SCRIPT_DIR}/manifests/cores.json")"
fail "$(t unsupported_core "$CORE" "pmmp,paper,purpur,velocity,powernukkitx,nethergamesmc,bds" "${SCRIPT_DIR}/manifests/cores.json")"
fi
CORE_NAME="$(core_name_${CORE})"
@@ -423,6 +423,8 @@ show_noob_plan() {
if [[ "$CORE" == "nethergamesmc" ]]; then
info "$(t easy_plan_build "$BUILD")"
info "$(t easy_plan_mc_version "$MC_VERSION")"
elif [[ "$CORE" == "bds" ]]; then
info "$(t easy_plan_bds_version "$MC_VERSION")"
fi
if is_java_core "$CORE"; then
info "$(t easy_plan_eula "$ACCEPT_EULA")"
@@ -452,6 +454,8 @@ interact() {
if [[ "$CORE" == "nethergamesmc" ]]; then
ask_value "$(t prompt_php_build)" "${BUILD:-latest}" BUILD
ask_value "$(t prompt_pocketmine_version)" "${MC_VERSION:-latest}" MC_VERSION
elif [[ "$CORE" == "bds" ]]; then
ask_value "$(t prompt_bds_version)" "${MC_VERSION:-latest}" MC_VERSION
fi
ask_value "$(t prompt_service_mode)" "$SERVICE_MODE" SERVICE_MODE
ask_value "$(t prompt_open_firewall)" "$FIREWALL" FIREWALL
@@ -525,7 +529,7 @@ check_existing_directory() {
fi
if [[ "$FORCE_CLEAN" == "yes" ]]; then
run_cmd find "$SERVER_DIR" -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +
run_cmd bash -c "find \"$SERVER_DIR\" -mindepth 1 -delete"
return
fi