From 874991f8f0862c949908d59b6775e010341aaedf Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Thu, 28 Nov 2024 16:01:13 -0500 Subject: [PATCH] Port the commit "Fix the bug with pefix" to the new codebase --- plugins/selfcare.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/selfcare.js b/plugins/selfcare.js index 22caef1..69aec44 100755 --- a/plugins/selfcare.js +++ b/plugins/selfcare.js @@ -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 } })