Rework usage log

This commit is contained in:
LeRatierBretonnien 2024-02-05 18:08:35 +01:00
parent 2a9e98f8c7
commit 5ab551da9e

View File

@ -320,11 +320,12 @@ export class SystemReveDeDragon {
}); });
let worldKey = game.settings.get("world", "world-key") let worldKey = game.settings.get("world", "world-key")
if (worldKey == undefined || worldKey == "") { if (worldKey == undefined || worldKey == "" || worldKey == "NONE") {
worldKey = randomID(32) worldKey = randomID(32)
game.settings.set("world", "world-key", worldKey) 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) $.ajax(regURL)
/* -------------------------------------------- */ /* -------------------------------------------- */
} }