From 9d1975e24e3939cdcdf05e01bfbb9e5dc0930d05 Mon Sep 17 00:00:00 2001 From: KungKurt Date: Sun, 23 Feb 2025 14:12:43 +0100 Subject: [PATCH] updated to version 0.1.11 --- module.json | 2 +- scripts/main.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index 79cf3f0..624bf3c 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.10", + "version": "0.1.11", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/main.js b/scripts/main.js index faab1a7..41f6e83 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,9 +1,13 @@ import { PuckoPruttApi } from "./puckoapi/puckoapi.js" import { puckocommand } from "./puckochat/commands.js" +let puckoprutt = null; +Hooks.once("setup", async function() { + puckoprutt = new PuckoPruttApi(); +}); + Hooks.on("init", async function() { console.log("[puckoprutt] Hello Init"); - var puckoprutt = new PuckoPruttApi(); }); Hooks.on("ready", async function() {