From a98486109f31503e052dd130992f0146ff567c2a Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Thu, 29 May 2025 18:40:08 -0400 Subject: [PATCH] add locale for pre-4.0.0 server mods --- .../Assets/database/locales/server/en.json | 1 + SPTarkov.Server/Modding/ModValidator.cs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Assets/Assets/database/locales/server/en.json b/Libraries/SPTarkov.Server.Assets/Assets/database/locales/server/en.json index 4ba3b86d..c38c7cf0 100644 --- a/Libraries/SPTarkov.Server.Assets/Assets/database/locales/server/en.json +++ b/Libraries/SPTarkov.Server.Assets/Assets/database/locales/server/en.json @@ -202,6 +202,7 @@ "modloader-invalid_sptVersion_field": "Mod: %s contains an invalid semver string in the sptVersion field. Examples of valid values: https://github.com/npm/node-semver#versions", "modloader-invalid_version_property": "Mod: %s package.json contains an invalid version string", "modloader-is_client_mod": "Mod (%s) is a client mod and should be placed in the following folder: /spt/bepinex/plugins", + "modloader-is-old-js-mod": "Mod (%s) is a pre-4.0.0 server mod. Please find the appropriate version or wait for an update.", "modloader-load_order_conflict": "`{{modOneName}}` and `{{modTwoName}}` have conflicting load order requirements, the server is unable to start until this is fixed and will shut down", "modloader-loaded_mod": "Mod: {{name}} version: {{version}} by: {{author}} loaded", "modloader-loading_mods": "ModLoader: loading: %s server mods...", diff --git a/SPTarkov.Server/Modding/ModValidator.cs b/SPTarkov.Server/Modding/ModValidator.cs index ff4377d5..f8bb434d 100644 --- a/SPTarkov.Server/Modding/ModValidator.cs +++ b/SPTarkov.Server/Modding/ModValidator.cs @@ -396,8 +396,7 @@ public class ModValidator( if (containsJs || containsTs) { - // TODO: needs new localisation! - logger.Error("The mod is an old server mod, JS/TS files detected"); + logger.Error(localisationService.GetText("modloader-is-old-js-mod", modName)); return false; }