From 51216977a5e646a0356215146ce9f347ebf2a6b6 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 19 Oct 2024 07:42:42 +0700 Subject: [PATCH] Fix #4 --- .../java/me/chayapak1/chomens_bot/plugins/SelfCarePlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/SelfCarePlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/SelfCarePlugin.java index 81746ed..bcbde1b 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/SelfCarePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/SelfCarePlugin.java @@ -68,6 +68,8 @@ public class SelfCarePlugin extends Bot.Listener { else if (string.equals("You now have the tag: " + bot.config.selfCare.prefix.prefix)) prefix = true; else if (string.startsWith("You no longer have a tag")) prefix = false; else if (string.startsWith("You now have the tag: ")) prefix = false; + // prefix = true as a workaround to prevent spamming + else if (string.equals("Something went wrong while saving the prefix. Please check console.")) prefix = true; // Parker2991 else if (string.equals("Successfully set your username to \"" + bot.username + "\"")) username = true; else if (string.startsWith("You already have the username \"")) username = true;