Rename netmsgDisabled to hidden
This commit is contained in:
parent
fd62d27352
commit
58df0b2b6a
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ const { bot } = require('../index.js')
|
||||||
const { getMessage } = require('../util/lang.js')
|
const { getMessage } = require('../util/lang.js')
|
||||||
module.exports = {
|
module.exports = {
|
||||||
execute: (c) => {
|
execute: (c) => {
|
||||||
if(c.bot.host && c.bot.host.options.netmsgDisabled){
|
if(c.bot.host && c.bot.host.options.hidden){
|
||||||
c.reply({
|
c.reply({
|
||||||
text: getMessage(c.lang, "command.netmsg.disabled"),
|
text: getMessage(c.lang, "command.netmsg.disabled"),
|
||||||
color: c.colors.secondary
|
color: c.colors.secondary
|
||||||
|
@ -37,7 +37,7 @@ module.exports = {
|
||||||
color: 'white'
|
color: 'white'
|
||||||
}
|
}
|
||||||
for (const i in bot) {
|
for (const i in bot) {
|
||||||
if(bot[i].host.options.netmsgDisabled) continue
|
if(bot[i].host.options.hidden) continue
|
||||||
bot[i].tellraw('@a', json)
|
bot[i].tellraw('@a', json)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue