Skip to content

Commit

Permalink
fix: resets error message when validating a clan tag (RoinujNosde#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomut0 authored Jun 23, 2023
1 parent 57b9987 commit 8269d80
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public TagValidator(@NotNull SettingsManager settings, @NotNull PermissionsManag
* @return error message if any
*/
public Optional<String> 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));
Expand Down

0 comments on commit 8269d80

Please sign in to comment.