From abd672dd3b90e4941ffbb3a8ea8b052d6c9edf3d Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:36:29 +0100 Subject: [PATCH] Small bug fixes (plugin system) --- .github/CONTENT_CREATORS.md | 2 +- src/core/api/modules/plugin.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/CONTENT_CREATORS.md b/.github/CONTENT_CREATORS.md index f72f41f..af0ea14 100644 --- a/.github/CONTENT_CREATORS.md +++ b/.github/CONTENT_CREATORS.md @@ -1,6 +1,6 @@ # 🎥 Content Creators Hi there! We're searching for content creators to create tutorials & setup guides for Open Ticket. -You can get many great rewards from helpin us! +You can get many great rewards from helping us! You can choose which type of tutorial you want to make. You can create a quick setup, full setup, plugin tutorial or something else! You are not required to talk in the video, but make sure it has some kind of subtitles instead. diff --git a/src/core/api/modules/plugin.ts b/src/core/api/modules/plugin.ts index 31fd16b..864f6fe 100644 --- a/src/core/api/modules/plugin.ts +++ b/src/core/api/modules/plugin.ts @@ -20,10 +20,10 @@ export class ODPluginManager extends ODManager { } /**Check if a plugin has loaded successfully.*/ - isPluginLoaded(id:ODValidId){ + isPluginLoaded(id:ODValidId): boolean { const newId = new ODId(id) const plugin = this.get(newId) - return (plugin && plugin.executed) + return (plugin !== null && plugin.executed) } }