Solved [1.12] PacketPlayOutChat - Sending Action Bar Prompt

Discussion in 'Spigot Plugin Development' started by WAS, May 15, 2017.

  1. WAS

    WAS

    For some reason I am getting a (well not really "some" reason, but unknown to me)
    So it seems it is not taking my byte anymore. This was ok in past version back to 1.7.10 so I am not sure what to do in this case. I am trying to send an action bar prompt.

    I tried to grep the source, and naturally came up with so many results I'm not sure where to even start. But I don't notice a byte being supplied in any current examples.
     
  2. Try
    Code (Text):
    PacketPlayOutChat packetPlayOutChat = new PacketPlayOutChat(cbc, ChatMessageType.GAME_INFO);
     
    • Like Like x 3
    • Agree Agree x 1
    • Useful Useful x 1
  3. WAS

    WAS

    Hey! Look at that, no complaint! Thanks a million!

    Do you happen to know how far back this enum spans? Version wise?
     
  4. Its brand new for 1.12
     
  5. WAS

    WAS

    Oh I see.

    Any idea what this error is about? No complaint in eclipse

    Code (Text):
    java.lang.Error: Unresolved compilation problems:
      IChatBaseComponent cannot be resolved to a type
      IChatBaseComponent cannot be resolved
      PacketPlayOutChat cannot be resolved to a type
      PacketPlayOutChat cannot be resolved to a type
      CraftPlayer cannot be resolved to a type
      CraftPlayer cannot be resolved to a type
    Wait, may be a stupid mistake with the my versioning system.

    Update; All's well. I was reloading an old class.
     
    #5 WAS, May 15, 2017
    Last edited: May 15, 2017