From 54d47585f26670a4268c5eafa19b75bffb22277a Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 21 Oct 2023 20:19:45 +0100 Subject: [PATCH] Show sessionid/profile id when profile data is saved --- project/assets/database/locales/server/en.json | 2 +- project/src/servers/SaveServer.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/assets/database/locales/server/en.json b/project/assets/database/locales/server/en.json index 12b4421c..a9d31c76 100644 --- a/project/assets/database/locales/server/en.json +++ b/project/assets/database/locales/server/en.json @@ -155,7 +155,7 @@ "payment-zero_price_no_payment": "Price is 0 no payment needed", "player-attempt_to_increment_skill_with_negative_value": "Unable to increment skill: %s with a negative amount", "port_already_in_use": "Port %s is already in use, check if the server is already running", - "profile_saved": "Profile changes saved", + "profile_saved": "%s Profile changes saved", "profile_save_callback_error": "Error while executing onBeforeSaveCallback: {{callback}}, {{error}}", "profile-unable_to_find_profile_by_id_cannot_delete": "Unable to delete profile with id: %s, no profile with id found", "quest-compare_operator_unhandled": "loyaltyRequirementCheck() operator %s not handled, defaulting to false", diff --git a/project/src/servers/SaveServer.ts b/project/src/servers/SaveServer.ts index 5cac7b81..a82324f6 100644 --- a/project/src/servers/SaveServer.ts +++ b/project/src/servers/SaveServer.ts @@ -208,9 +208,9 @@ export class SaveServer if (typeof(this.saveMd5[sessionID]) !== "string" || this.saveMd5[sessionID] !== fmd5) { this.saveMd5[sessionID] = String(fmd5); - // save profile + // save profile to disk this.vfs.writeFile(filePath, jsonProfile); - this.logger.info(this.localisationService.getText("profile_saved")); + this.logger.info(this.localisationService.getText("profile_saved", sessionID)); } }