Fix the bug with pefix

This commit is contained in:
7cc5c4f330d47060 2024-10-30 13:57:22 -04:00
parent 75e48f2103
commit 04b6ccba63
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -123,7 +123,8 @@ module.exports = {
}
})
b.on('plainchat', (msg) => {
if (msg === `You now have the tag: ${parseMc(b.adPrefix).replaceAll('§', '&')}`) {
if (msg === `You now have the tag: ${parseMc(b.adPrefix).replaceAll('§', '&')}` ||
msg === `Something went wrong while saving the prefix. Please check console.`) { //Fix the prefix issue
b.sc_tasks.playerlist_ads.failed = 0
}
})