Add disable of incoming netmsg

This commit is contained in:
7cc5c4f330d47060 2024-08-25 22:20:34 -04:00
parent f8ddba5fd7
commit ae14106a0d
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -47,6 +47,7 @@ module.exports = {
color: 'white' color: 'white'
} }
bot.forEach(item => { bot.forEach(item => {
if(item.host.options && item.host.options.netmsgIncomingDisabled && c.type !== "console") return
item.tellraw('@a', json) item.tellraw('@a', json)
}) })
} }