ProtocolLib IChatBaseComponent

Discussion in 'Spigot Plugin Development' started by MCMDEC, Nov 10, 2018.

  1. For some reason
    Code (Text):
    packet.getChatComponentArrays().read(0);
    gives me this error:
    Code (Text):
    Caused by: com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.server.v1_8_R3.NBTTagCompound exists in class PacketPlayOutUpdateSign.
    I am trying to get an IChatBaseComponent Array

    What am i doing wrong?
     
  2. As I know before 1.12 Minecraft didn't use the ChatComponent for such thing. At that time they used Strings.
     
  3. The PacketPlayInUpdateSign Packet actually uses Chat Components even in 1.8
     
    • Like Like x 1
  4. It does. The actual source of the NMS Class in the Jar File can't lie
     
  5. Nope. ChatComponents, in 1.8, are used when client sends update sign packets. In later versions, String arrays are used.
     

Share This Page