fix that lootboxes are disabled with use command as well

This commit is contained in:
2026-01-22 00:37:10 +01:00
parent aa757a563d
commit f3c6f6a6b3

View File

@@ -25,6 +25,10 @@ export default new Command({
}
const selection = items.get(messagequery[0].toLowerCase());
if (messagequery[0].toLowerCase() === "lootbox") {
if (await redis.sismember("disabledcommands", "getloot")) {
await sendMessage("Lootboxes are currently disabled", msg.messageId);
return;
}
await getloot.execute(msg, user);
return;
}