remove typeof from tellraw plugin cuz UNUSED

This commit is contained in:
ChomeNS 2022-12-25 16:55:34 +07:00
parent b6a0c9c4ad
commit 056b38fcf8

View file

@ -5,7 +5,7 @@ function inject (bot, dcclient, config) {
bot.chat(ChatMessage.fromNotch(message).toMotd().replaceAll('\xa7', '&'))
return
}
bot.core.run(`minecraft:tellraw ${selector} ${typeof message === 'string' ? message : JSON.stringify(message)}`)
bot.core.run(`minecraft:tellraw ${selector} ${JSON.stringify(message)}`)
}
};