FIX THE FUCKING CORRECT AHHHHHHHHH

IM DUMB THE ENTIRE TIME
This commit is contained in:
Chayapak 2023-09-24 18:16:26 +07:00
parent 1120cbbc09
commit 7d16d0aa3c

View file

@ -67,7 +67,7 @@ public class FormatCheckerPlugin extends ChatPlugin.Listener {
final Component prefix = format.args().get(0);
if (prefix.equals(bot.console.formatPrefix) || prefix.equals(bot.discord.messagePrefix)) return false;
if (prefix.equals(bot.console.formatPrefix) || (bot.discord != null && prefix.equals(bot.discord.messagePrefix))) return false;
if (!(prefix instanceof TranslatableComponent translatablePrefix)) return true;
@ -89,6 +89,6 @@ public class FormatCheckerPlugin extends ChatPlugin.Listener {
if (correct) totalFormat++;
return correct;
return !correct;
}
}