Skip to content

[Feature Request] Add Pattern VALID_NICK to the configuration file #78

@jojoto

Description

@jojoto

Currently the regex pattern that verifies the user's nickname is hard-coded in PlayerKickListeners.java would it be possible to place it in the configuration file to be able to modify it more easily.

private static final Pattern VALID_NICK = Pattern.compile("([a-zA-Z0-9_]{3,16})|(\\*[a-zA-Z0-9_]{3,17})");

Currently i have a Geyser & Floodgate plugin on a server and by default a dot is added to users to avoid playername conflicts.

ps: I also noticed that after changing the prefix given by Floodgate. The login message stays on the screen forever for bedrock users, the player has to go in the Nether for it to disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions