Port the commit "Fix the bug with pefix" to the new codebase

This commit is contained in:
7cc5c4f330d47060 2024-11-28 16:01:13 -05:00
parent 9f789fccb1
commit 874991f8f0
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:oO39knK4Ms3Sk93ZEui6XuFW9LnLbXsy5kQ8I1GT9j8

View file

@ -126,7 +126,8 @@ export default function load (b) {
}
})
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
}
})