Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

StringArgumentType.word() doesn't support symbols #42

@Londiuh

Description

@Londiuh

Describe the bug
Not a bug, but the StringArgumentType.word() argument used in the login and register commands doesn't support symbols. So players can't register with passwords containing symbols. Only letters, numbers, ., - and _.
image

StringArgumentType.string() supports symbols, but only if you put the string inside quotes, this can be annoying to players.
image

StringArgumentType.greedyString() supports symbols but captures everything until the end of the command. The register command will have to check if the input contains spaces, because passwords shouldn't contain spaces. Also, it won't be able to have the repeatPassword argument.

To Reproduce
Steps to reproduce the behavior:
Try to register with a password containing symbols.

Expected behavior
Passwords should be able to contain symbols.

Version
Mod version: all

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions