Skip to content

Placeholder <version> incorrectly parses to "x to x" #49

@Tig3r98

Description

@Tig3r98

If you set the plugin to allow specific versions:

versions = [770, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 755, 753, 751, 736, 735, 578, 575, 573, 498, 490, 485, 480, 477, 404, 401, 393, 340, 338, 335, 316, 315, 210, 110, 109, 108, 107, 47, 5, 4]
# Allowing: 1.16.5 (754), 1.17.1 (756), 1.21.4 (769)

the disconnect_message is wrong, parsing with:
1.16.4 to 1.21.4

This confuses users, which think they can join with any version in-between. This short format should only be presented when all in-between protocols are supported, excluding snapshots. It's probably easier to add a config option to use versions as a whitelist.

Obviously the workaround is not to use the placeholder, but it still shouldn't return wrong information.

While we're at it, the placeholder should ideally be translatable (the "to" word isn't).

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