Introduce beta 1.8 Packet254GetInfo for server ping#111
Introduce beta 1.8 Packet254GetInfo for server ping#111alfonsojon wants to merge 6 commits intoretromcorg:masterfrom
Conversation
|
resolves #12 |
moderatorman
left a comment
There was a problem hiding this comment.
I'm not sure it's a good idea to be remapping NMS code, as there are plenty of plugins that need to use reflection to access internal Minecraft classes, and changing the names would break those entirely. I can't say for sure if this would break any plugins, but all the same I reckon it would be better left alone.
I would like for other contributors to comment on these changes before I approve and merge them, and I'm also probably going to DM Johny to review this as well.
|
After speaking with a Planet Minecraft employee, I found that this was inaccurate & rather caused by their specific implementation of the server ping. |
|
I checked with a CraftBukkit b1.8.1 server and can validate that the bad packet ID 5 error is there, but it doesn't throw a NullPointerException due to string length. Similar issue though slightly less verbose. |
Pre-Netty RewriteProtocol 17 - 23 (b1.8 - 1.1)
Protocol 28 - 29 (1.2 - 1.2.5)
Protocol 39 (1.3-1.3.2)
Protocol 47 - 61 (1.4 - 1.5.2)
Protocol 72 - 78 (1.6 - 1.6.2)
Post-Netty RewriteProtocol 0+ (1.7 - modern)
|
|
After testing with a local instance of CraftBukkit 1185, I can confirm this behavior is identical in both Project Poseidon and CraftBukkit, so a custom solution will need to be ported. This is the output I get from trying to ping a b1.8.1 server running CraftBukkit 1185 using a Minecraft 1.6.4 client: |
|
This behavior is also experienced when pinging a vanilla Minecraft b1.8.1 server using a Minecraft 1.6.4 client. This behavior does match vanilla Minecraft beta 1.8's ping behavior. I have not been able to reproduce the NPE caused by pinging with a modern client version |
|
@alfonsojon Any updates on this? |

backport of beta 1.8 server ping to beta 1.7.3