diff --git a/module.json b/module.json index 2dc76f3..6119ade 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.12", + "version": "0.1.13", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/main.js b/scripts/main.js index f5ac8e7..62079d9 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,9 +1,9 @@ -import { PuckoPruttApi } from "./puckoapi/puckoapi.js" -import { puckocommand } from "./puckochat/commands.js" +import { puckoprutt } from "./puckoapi/puckoapi.js"; +import { puckocommand } from "./puckochat/commands.js"; -let puckoprutt = null; +let pp = null; Hooks.once("setup", async function() { - puckoprutt = new PuckoPruttApi(); + pp = puckoprutt; }); Hooks.on("init", async function() { diff --git a/scripts/puckoapi/puckoapi.js b/scripts/puckoapi/puckoapi.js index b7448b6..c1e89cf 100644 --- a/scripts/puckoapi/puckoapi.js +++ b/scripts/puckoapi/puckoapi.js @@ -9,4 +9,6 @@ class PuckoPruttApi { } } -export default PuckoPruttApi; \ No newline at end of file +const puckoprutt = new PuckoPruttApi(); + +export default puckoprutt; \ No newline at end of file