This commit is contained in:
7cc5c4f330d47060 2024-09-11 23:38:55 -04:00
parent 284ebf488e
commit 9c6eb5ee4e
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -11,7 +11,7 @@ module.exports = {
const permsN = getMessage(c.lang, 'command.help.permsNormal')
const permsT = getMessage(c.lang, 'command.help.permsTrusted')
const permsO = getMessage(c.lang, 'command.help.permsOwner')
if (command.level !== undefined && command.level > verify) {
if (command && command.level !== undefined && command.level > verify) {
b.tellraw(c.uuid, {
text: getMessage(c.lang, 'command.disallowed.perms')
})