made the use command not disableable, just disable the items

This commit is contained in:
2025-07-04 22:43:05 +02:00
parent 2fd30bd87e
commit 945e17f271
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ COMMAND|FUNCTION|USER|ALIASES|DISABLEABLE
`iteminfo {item}`|Get item function and aliases|anyone|`iteminfo` `itemhelp` `info`|:white_check_mark:
`inventory [target]`|Get inventory contents of target or self|anyone|`inventory` `inv`|:white_check_mark:
`give {target} {item} {amount}`|Give targeted user amount of items|anyone|`give`|:white_check_mark:
`use {item} ...`|Use item. More info at [The items section](#items)|anyone|`use`|:white_check_mark:
`use {item} ...`|Use item. More info at [The items section](#items)|anyone|`use`|:x:
`admingive {target} {item} {amount}`|Give targeted user amount of new items|admins|`admingive`|:white_check_mark:
### Administrative commands

View File

@@ -9,4 +9,4 @@ export default new Command('use', ['use'], 'chatter', async (msg, user) => {
if (!selection) { await sendMessage(`'${messagequery[0]}' is not an item`, msg.messageId); return; };
if (await redis.sismember('disabledcommands', selection.name)) { await sendMessage(`The ${selection.prettyName} item is disabled`, msg.messageId); return; };
await selection.execute(msg, user);
});
}, false);