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

Fix packet decoding #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

0dinD
Copy link

@0dinD 0dinD commented Mar 3, 2023

NOTE: This PR does not provide a solution for #2

As explained in #2 (comment), the source code uploaded to this repository differs from the source code that was used to build the JAR file which has been uploaded to eCloud. Commit 0128494 reverts the seemingly accidental change to the source code, which means that the plugin once again works if built from this source code. Commit 2c88195 should contain no behavioral changes to the code, it's just a slight rewrite to improve the clarity, by using hexadecimal notation for magic bytes and adding some comments to explain the code.

I have tested that:

  • Before these changes, the plugin (built from the source code, not the eCloud version) doesn't work at all, the placeholders just return empty strings
  • After these changes, the plugin once again works the same way as the eCloud version

0dinD added 2 commits March 3, 2023 20:22
Previously, the ampersand character was incorrectly used instead of the
section sign character, which is clearly the right character according
to https://wiki.vg/Server_List_Ping#1.6 .

The mistake seems to have been introduced when the source code was first
published, but went unnoticed since an older version (which didn't
contain the mistake) was published as the final release JAR.

See also: PlaceholderAPI#2
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