-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
Shall I resolve #294 together? |
private int nicknameMinLimit = 3; | ||
|
||
@Comment("Maximum number of characters in nickname.") | ||
private int nicknameMaxLimit = 16; |
There was a problem hiding this comment.
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.
common/src/main/java/net/draycia/carbon/common/command/commands/NicknameCommand.java
Show resolved
Hide resolved
common/src/main/java/net/draycia/carbon/common/config/PrimaryConfig.java
Outdated
Show resolved
Hide resolved
common/src/main/java/net/draycia/carbon/common/messages/CarbonMessages.java
Outdated
Show resolved
Hide resolved
Thanks for the review 😘 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Set a character limit on nicknames.
Currently no limit is imposed, so you can set incredibly long names. Fix this.
This pull request serves to indirectly fix this issue #292 , but it is not an essential fix.
Please check the following items.