Support new PaperMC versioning scheme in VersionUtil#6480
Merged
Conversation
Add equalsBaseVersion() method to BukkitVersion to match development builds against their target release version. Update getServerSupportStatus() to recognize dev variants of supported versions as supported rather than marking them as OUTDATED. Fix toString() to use dash-separated format for pre-release and RC numbers, matching the new PaperMC versioning style. Agent-Logs-Url: https://github.com/EssentialsX/Essentials/sessions/8d15d863-4ca0-479c-a121-81912059f3b4 Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
Agent-Logs-Url: https://github.com/EssentialsX/Essentials/sessions/8d15d863-4ca0-479c-a121-81912059f3b4 Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
….8-alpha) Update VERSION_PATTERN to parse Paper's .build.N-label suffix that appears after Mojang version specifiers. Add paperBuild field to BukkitVersion for comparing Paper development builds. The build label (alpha/beta) is consumed by the regex but not stored. Paper build metadata is included in equals/hashCode/compareTo for exact version differentiation, but ignored by equalsBaseVersion for support status checks. Agent-Logs-Url: https://github.com/EssentialsX/Essentials/sessions/f04913cd-7d68-4aec-b3ab-c3ef1fd947e2 Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
Paper's new versioning scheme doesn't include the Bukkit revision suffix (-R0.1-SNAPSHOT). Update equalsBaseVersion() to ignore revision since it's Bukkit metadata, not part of the game version. Update isSupportedVersion() to always check equalsBaseVersion (not just for dev variants), so plain Paper versions like "26.1" match supported version "26.1-R0.1-SNAPSHOT". Add tests for Paper-format strings without R0.1. Agent-Logs-Url: https://github.com/EssentialsX/Essentials/sessions/89adf5ad-fb84-4bb0-8136-c3aec4457650 Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
Paper versions with .build.N-label suffix never include -R0.1-SNAPSHOT. Remove tests that used the invalid combined format (e.g. 26.1-pre-3.build.5-alpha-R0.1-SNAPSHOT) and consolidate all Paper build tests to use the real Paper format without R0.1-SNAPSHOT. Agent-Logs-Url: https://github.com/EssentialsX/Essentials/sessions/96411169-9729-4f2b-8ca8-e4457e160f4f Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
JRoy
approved these changes
Apr 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ThioJoe is waiting!
Re #6479