diff --git a/src/events/loader.ts b/src/events/loader.ts index bf557ce..656f6c7 100644 --- a/src/events/loader.ts +++ b/src/events/loader.ts @@ -29,6 +29,12 @@ export default async (client: Client) => { const event_type = event_type_ext.join("."); if (event_category == "player") { + if (once) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return client.player.once(event_type as keyof PlayerEvents, (...args: any) => + execute(...args, client) + ); + } // eslint-disable-next-line @typescript-eslint/no-explicit-any return client.player.on(event_type as keyof PlayerEvents, (...args: any) => execute(...args, client)