[Solved] Spigot Protocol Hack TabList Help

Discussion in 'Spigot Plugin Development' started by R4G3__BABY, Jul 1, 2015.

  1. Im trying to remove a player from the tablist and then add a ney one with the same name but colored and i dont know how to use PacketPlayOutPlayerInfo in Spigot Protocol Hack.
    In 1.8 i use this
    Code (Text):
    PlayerConnection connection = ((CraftPlayer)players).getHandle().playerConnection;
    connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.REMOVE_PLAYER, new EntityPlayer[] { player }));
    connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, new EntityPlayer[] { newName }));
    but in 1.7 dosent work.
     
  2. Check if is 1.8 and send your packets
     
  3. Ok figured it out thx for the help