Register the event
Enable allowListRemoved in events in your ForgeMinecraft options in index.js:
const { ForgeClient } = require("@tryforge/forgescript")
const { ForgeMinecraft } = require("@tryforge/forge.minecraft")
const minecraft = new ForgeMinecraft({
events: [
"allowListRemoved"
]
})
const client = new ForgeClient({
events: [
"clientReady"
],
intents: [
"Guilds"
],
extensions: [
minecraft
]
})Handle the event
Listen and react when allowListRemoved is triggered using an inline command or an external handler file:
minecraft.commands.add({
type: "allowListRemoved",
code: `$log[allowListRemoved event was triggered!]`
})