Rename netmsgDisabled to hidden

This commit is contained in:
7cc5c4f330d47060 2024-08-13 02:07:37 -04:00
parent fd62d27352
commit 58df0b2b6a
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -2,7 +2,7 @@ const { bot } = require('../index.js')
const { getMessage } = require('../util/lang.js')
module.exports = {
execute: (c) => {
if(c.bot.host && c.bot.host.options.netmsgDisabled){
if(c.bot.host && c.bot.host.options.hidden){
c.reply({
text: getMessage(c.lang, "command.netmsg.disabled"),
color: c.colors.secondary
@ -37,7 +37,7 @@ module.exports = {
color: 'white'
}
for (const i in bot) {
if(bot[i].host.options.netmsgDisabled) continue
if(bot[i].host.options.hidden) continue
bot[i].tellraw('@a', json)
}
}