16869992a8
* Make the legacy ping handler more reliable The Minecraft server often fails to respond to old ("legacy") pings from old Minecraft versions using the protocol used before the switch to Netty in Minecraft 1.7. Due to packet fragmentation[1], we might not have all needed bytes available when the LegacyPingHandler is called. In this case, it will run into an error, remove the handler and continue using the modern protocol. This is unlikely to happen for the first two revisions of the legacy ping protocol (used in Minecraft 1.5.x and older) since the request consists of only one or two bytes, but happens frequently for the last/third revision introduced in Minecraft 1.6. It has much larger, variable packet sizes due to the inclusion of the virtual host (the hostname/port used to connect to the server). The solution[2] is simple: If we find more than two matching bytes, we buffer the remaining bytes until we have enough to fully read and respond to the request. [1]: https://netty.io/wiki/user-guide-for-4.x.html#wiki-h3-11 [2]: https://netty.io/wiki/user-guide-for-4.x.html#wiki-h4-13 * Add legacy ping support to PaperServerListPingEvent Add a new method to StatusClient check if the client is a legacy client that does not support all of the features provided in the event. |
||
---|---|---|
.github | ||
Spigot-API-Patches | ||
Spigot-Server-Patches | ||
licenses | ||
scripts | ||
work | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE.md | ||
README.md | ||
paper | ||
pom.xml |
README.md
Paper
High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.
IRC Support and Project Discussion
Documentation
Access the Paper docs here: paper.readthedocs.io
Access the Paper API javadocs here: paperdocs.emc.gs
How To (Server Admins)
Paperclip is a jar file that you can download and run just like a normal jar file.
Download a copy of paperclip.jar from our build server, here.
Run the Paperclip jar directly from your server. Just like old times
Paper requires Java 8 or above.
How To (Compiling Jar From Source)
To compile Paper, you need JDK 8, maven, and an internet connection.
Clone this repo, run ./paper jar
from bash, get files.
How To (Pull Request)
See Contributing
Special Thanks To:
YourKit, makers of the outstanding java profiler, support open source projects of all kinds with their full featured Java and .NET application profilers. We thank them for granting Paper an OSS license so that we can make our software the best it can be.