Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nickname character limit. #293

Merged
merged 2 commits into from
Sep 18, 2023
Merged

Conversation

NamiUni
Copy link
Contributor

@NamiUni NamiUni commented Sep 15, 2023

Set a character limit on nicknames.
Currently no limit is imposed, so you can set incredibly long names. Fix this.
image

This pull request serves to indirectly fix this issue #292 , but it is not an essential fix.

Please check the following items.

  • Should we create a new nickname-settings in config?
  • Is the message appropriate?

@NamiUni
Copy link
Contributor Author

NamiUni commented Sep 15, 2023

Shall I resolve #294 together?

private int nicknameMinLimit = 3;

@Comment("Maximum number of characters in nickname.")
private int nicknameMaxLimit = 16;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for the default setting of 16 characters is that MinecraftID can be set to a maximum of 16 characters.

@NamiUni NamiUni marked this pull request as ready for review September 18, 2023 00:16
@NamiUni
Copy link
Contributor Author

NamiUni commented Sep 18, 2023

Thanks for the review 😘
I changed the pull request from draft to open.

Copy link
Member

@jpenilla jpenilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jpenilla jpenilla merged commit 2b1a3cd into Hexaoxide:2.1 Sep 18, 2023
1 check passed
@NamiUni NamiUni deleted the nickname-limit branch March 21, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants