Update commands/netmsg.js

This commit is contained in:
4Parker02991 2024-01-27 10:00:48 -05:00
parent 318ec20944
commit 8a9c35d120

View file

@ -41,13 +41,13 @@ module.exports = {
if (!message[0]) { if (!message[0]) {
context.source.sendFeedback({text:'Message is empty', color:'red'}, false) context.source.sendFeedback({text:'Message is empty', color:'red'}, false)
if(source.sources.console && !bot.options.Core.CorelessMode){ if(source.sources.console && bot.options.Core.CorelessMode){
for (const eachBot of bot.bots) for (const eachBot of bot.bots)
eachBot.chat(`[${bot.options.host}:${bot.options.port}] ${ChatMessage.fromNotch(bot.options.username).toMotd().replaceAll('§', '&')} &f ${message}`) eachBot.chat(`[${bot.options.host}:${bot.options.port}] ${ChatMessage.fromNotch(bot.options.username).toMotd().replaceAll('§', '&')} &f ${message}`)
} }
} else if (!bot.options.Core.CorelessMode && !source.sources.console) { } else if (bot.options.Core.CorelessMode && !source.sources.console) {
for (const eachBot of bot.bots) for (const eachBot of bot.bots)