fix: prefix self care not working for the Something went wrong while saving the prefix

This commit is contained in:
ChomeNS
2025-05-14 16:44:10 +07:00
parent 879c1acf1d
commit 76e75f3601
2 changed files with 5 additions and 3 deletions

View File

@@ -17,12 +17,14 @@ public class PrefixSelfCare extends SelfCare {
@Override
public void onMessageReceived (final Component component, final String string) {
if (string.equals("You now have the tag: " + bot.config.selfCare.prefix.prefix)) {
if (
string.equals("You now have the tag: " + bot.config.selfCare.prefix.prefix)
|| string.equals("Something went wrong while saving the prefix. Please check console.")
) {
this.needsRunning = false;
} else if (
string.startsWith("You no longer have a tag")
|| string.startsWith("You now have the tag: ")
|| string.equals("Something went wrong while saving the prefix. Please check console.")
) {
this.needsRunning = true;
}