Development Assistance packetplayoutplayerinfo

Discussion in 'Plugin Help/Development/Requests' started by fejm15, Mar 17, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    fejm15

    Hi,
    i don't understand packet "packetplayoutplayerinfo" in spigot #1649. I know that this packet has changed in version 1.7.10.

    //sory for my English
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    UniqueNameDen

    //this is not in [code|] or [syntax|]
    Anyway this is how you use it:

    First: Make IChatBaseComponent
    IChatBaseComponent icbc = ChatSerializer.a("{'text': '" + Message + "'}");
    Make a packet
    Packet<Packet> packet = new Packet<packet>(icbc, (byte)<byte>);
    Send the packet:
    p.getHandle().playerConnection.sendPacket(packet);

    <> = Required[/code]
     
Thread Status:
Not open for further replies.

Share This Page