forgor the check config

This commit is contained in:
Chayapak 2023-09-22 18:18:46 +07:00
parent 36afeba760
commit d091ee4b43

View file

@ -26,6 +26,8 @@ public class FormatCheckerPlugin extends ChatPlugin.Listener {
} }
public boolean isImposterFormat (Component component) { public boolean isImposterFormat (Component component) {
if (!bot.config.imposterFormatChecker.enabled) return false;
if (!(component instanceof TranslatableComponent format)) return false; if (!(component instanceof TranslatableComponent format)) return false;
final List<Component> args = format.args(); final List<Component> args = format.args();