aadnk / ProtocolLib

Provides read and write access to the Minecraft protocol with Bukkit.
GNU General Public License v2.0
288 stars 92 forks source link

FieldAccessException #181

Closed DrakMC closed 3 years ago

DrakMC commented 3 years ago

I'm trying to use ProtocolLib to send a packet to a player to open a demo screen. However, it displays an error.

Code: https://pastebin.com/9GVNY5mj Error: https://pastebin.com/bZDLPPeQ

I also tried this code: https://pastebin.com/dSUURDR3 But it shows me this error: https://pastebin.com/JA2haFzE

ProtocolLib Dump: https://pastebin.com/AVNzydGU

MiniDigger commented 3 years ago

well, the error is pretty clear. that packet doesnt contain ints nor bytes take a look at the source https://i.imgur.com/mGvLCcj.png so you will have to update your code to reflect that, this is not a protocollib error.