Skip to content

[BUG] Bad error message for /n create #341

@ghost

Description

Describe the bug
When creating a nation with a long name, it will fail. The error message says Error: Name cannot be more than 40 characters, yet the name can be much less than that and it will still give that error.

To Reproduce
Enter /n create qwertyuiopasdfghjklzxcvbnm 100 100 255 or some other similarly long name.
Examine the error message

Expected behavior
The error message displays the actual maximum character length.

System

  • OS: Linux - Ubuntu 21.04
  • RAM: 16gb
  • Minecraft Version: Java Edition 1.17.1 - Fabric (Sodium, Iris, Continuity, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions