You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add it to the plugin onLoad/onEnable (same behavior) this.tinyProtocol = new TestTinyProtocol(plugin);
Start the server and wait until the error occurred.
Exception
Caused by: java.lang.IllegalArgumentException: Cannot find field with type class com.mojang.authlib.GameProfile
at it.test.protocol.Reflection.getField(Reflection.java:179) ~[ParadiseLand.jar:?]
at it.test.protocol.Reflection.getField(Reflection.java:177) ~[ParadiseLand.jar:?]
at it.test.protocol.Reflection.getField(Reflection.java:177) ~[ParadiseLand.jar:?]
at it.test.protocol.Reflection.getField(Reflection.java:123) ~[ParadiseLand.jar:?]
at it.test.protocol.TinyProtocol.<clinit>(TinyProtocol.java:67) ~[ParadiseLand.jar:?]
... 14 more
This is because the net.minecraft.network.protocol.login.PacketLoginInStart from Spigot 1.19 no longer has a GameProfile field:
Expected behavior
Correct TinyProtocol loading.
Version Info ProtocolLib: not used in this case TinyProtocol: the latest available class from the GitHub master branch.
Additional context
TinyProtocol works from 1.8.8 to 1.18.2 and does not work from: 1.19
Thanks! 🥇
The text was updated successfully, but these errors were encountered:
gamerover98
changed the title
authlib GameProfile class not found in TinyProtocol
GameProfile field not found in TinyProtocol
Aug 5, 2023
Describe the bug
When using the TinyProtocol class, at line 67 the
Cannot find field with type class com.mojang.authlib.GameProfile
has occurred.To Reproduce
Steps to reproduce the behavior:
this.tinyProtocol = new TestTinyProtocol(plugin);
Exception
This is because the
net.minecraft.network.protocol.login.PacketLoginInStart
from Spigot 1.19 no longer has a GameProfile field:Expected behavior
Correct TinyProtocol loading.
Version Info
ProtocolLib: not used in this case
TinyProtocol: the latest available class from the GitHub master branch.
Additional context
TinyProtocol works from 1.8.8 to 1.18.2 and does not work from: 1.19
Thanks! 🥇
The text was updated successfully, but these errors were encountered: