Incorrect Protocol Version Reported When Using ViaVersion
andrewbelling opened this issue ยท 4 comments
Make sure you're doing the following
- You're using the latest build for your server version
- This isn't an issue caused by another plugin
- You've checked for duplicate issues
- You didn't use
/reload
Describe the question
Im Not Getting The Correct Protocol Version While Using ViaVersion & ProtocolLib, It Reports 1.12.2 As Protocol Version 47 (1.8) Instead Of Protocol Version 340 (1.12.2)
API method(s) used
ProtocolLibrary.getProtocolManager().getProtocolVersion(e.getPlayer())
Expected behavior
I Expect To Get The Correct Protocol Version Of The Player
Code
if(ProtocolLibrary.getProtocolManager().getProtocolVersion(e.getPlayer()) > 47) {
return;
} else if(ProtocolLibrary.getProtocolManager().getProtocolVersion(e.getPlayer()) < 47) {
return;
}
Additional context
Using ViaVersion
So the server is on 1.12 and you're joining with 1.8?
no, the server is 1.8 and im joining with 1.12
Hi,
did I understand the problem correctly? You're joining using 1.12 but ProtocolLib reports 1.8? Which server version are you running?