Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose protocol version for status pings #2456

Merged
merged 1 commit into from
Apr 22, 2023

Conversation

stephan-gh
Copy link
Contributor

Historically we considered the Minecraft protocol versions as "implementation detail" that should not be exposed in SpongeAPI.

However, since the addition of the status ping API 8 years ago (#367) the protocol version still exists exactly the same way, and there are use cases for checking it (identifying the exact client version) and modifying it (making the server appear as incompatible to clients).

Right now plugins have to resort to using implementation-specific code for this, which is complicated and now hopelessly broken for api-10 (due to internal changes in the Minecraft code).

Make it possible to check and modify the server version to fix this once and for all.

Closes #2251

stephan-gh added a commit to Minecrell/ServerListPlus that referenced this pull request Apr 14, 2023
On SpongeAPI 10 the implementation-specific code does not work anymore.
To fix this once and for all try to do it via proper APIs instead.

NOTE: This is not supported in SpongeAPI yet. Until this is merged copy
the modified interfaces to the stub source set to allow compiling.
See SpongePowered/SpongeAPI#2456
Historically we considered the Minecraft protocol versions as
"implementation detail" that should not be exposed in SpongeAPI.

However, since the addition of the status ping API 8 years ago the
protocol version still exists exactly the same way, and there are
use cases for checking it (identifying the exact client version) and
modifying it (making the server appear as incompatible to clients).

Right now plugins have to resort to using implementation-specific code
for this, which is complicated and now hopelessly broken for api-10
(due to internal changes in the Minecraft code).

Make it possible to check and modify the server version to fix this
once and for all.
@ImMorpheus ImMorpheus merged commit c8b137e into SpongePowered:api-10 Apr 22, 2023
@stephan-gh stephan-gh deleted the status-protocol branch April 22, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants