Hooks.on("ready", function() { console.log("Adding the Beguiller class"); if (game.items.filter((item) => item.name == 'The Beguiler' && item.type == 'class').length == 0) { game.items.importFromCompendium(game.packs.get("the_beguiler_module.dwgl-classe"), "vtwvUr31f4qcVSWx") } });