Added support for plugins

This commit is contained in:
SamTV12345 2024-07-13 21:45:25 +02:00 committed by SamTv12345
parent b7e0e6b216
commit 85dc9c088f
3 changed files with 6 additions and 5 deletions

View file

@ -90,6 +90,7 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function)
const pluginModules = new Set();
for (const part of plugins.parts) {
for (const [, hookFnName] of Object.entries(part.client_hooks || {})) {
console.log(hookFnName.split(':')[0])
pluginModules.add(hookFnName.split(':')[0]);
}
}