From 5ab551da9ec5a2072c64c34df6be1d7d217aecf5 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Mon, 5 Feb 2024 18:08:35 +0100 Subject: [PATCH] Rework usage log --- module/rdd-main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/rdd-main.js b/module/rdd-main.js index e8aae1f3..076a4d92 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -320,11 +320,12 @@ export class SystemReveDeDragon { }); let worldKey = game.settings.get("world", "world-key") - if (worldKey == undefined || worldKey == "") { + if (worldKey == undefined || worldKey == "" || worldKey == "NONE") { worldKey = randomID(32) game.settings.set("world", "world-key", worldKey) } - let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` + let lang = game.settings.get("core", "language") + let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&lang="${lang}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` $.ajax(regURL) /* -------------------------------------------- */ }