From 8269d80831533e517ed2ebd94bec18021de7b0e3 Mon Sep 17 00:00:00 2001 From: Minat0_ Date: Fri, 23 Jun 2023 19:44:32 +0300 Subject: [PATCH] fix: resets error message when validating a clan tag (#383) --- .../sacredlabyrinth/phaed/simpleclans/utils/TagValidator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/utils/TagValidator.java b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/utils/TagValidator.java index 3d3b5a930..7fbd6ec66 100644 --- a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/utils/TagValidator.java +++ b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/utils/TagValidator.java @@ -39,6 +39,7 @@ public TagValidator(@NotNull SettingsManager settings, @NotNull PermissionsManag * @return error message if any */ public Optional validate(@NotNull Player player, @NotNull String tag) { + error = null; String cleanTag = Helper.cleanTag(tag); if (tag.length() > 255 && settings.is(MYSQL_ENABLE)) { return Optional.of(lang("your.clan.color.tag.cannot.be.longer.than.characters", player, 255));