From ecd5efb30e81744ead2ebe07424ac36e7c5e35f4 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 24 Sep 2023 12:20:37 +0700 Subject: [PATCH] some --- .../chayapak/chomens_bot/plugins/FormatCheckerPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FormatCheckerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FormatCheckerPlugin.java index 9fe1657..24fb319 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FormatCheckerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/FormatCheckerPlugin.java @@ -85,8 +85,10 @@ public class FormatCheckerPlugin extends ChatPlugin.Listener { .toString() .substring(0, 8); - totalFormat++; + final boolean correct = hash.equals(userHashComponent.content()); - return !hash.equals(userHashComponent.content()); + if (correct) totalFormat++; + + return correct; } }