Spawn a NPC without adding fake player to tablist

Discussion in 'Spigot Plugin Development' started by yanjulang, May 26, 2018.

  1. Hello!

    I want to spawn a fake npc player with PacketPlayOutNamedEntitySpawn (for dead players in TTT)

    Now as far as I tested it, I have to add the fake player to the tablist with PacketPlayOutPlayerInfo first for loading the skin.

    But I obviously don't want dead player's bodies to appear in tab ^^

    Is there a way to spawn a NPC with a skin without adding it to tab?

  2. Hey so im not sure if this will help, but if you notice citizens has a breif flash of all the npcs, why dont you add them to tab and then hide their names in tab even though they still appear in game?
  3. Serializator


    To get rid of the NPCs in the tablist you can send another PacketPlayOutPlayerInfo after sending the PacketPlayOutNamedEntitySpawn that removes them from the tab, they don't have to stay in the tablist for the skin or something to work.
  4. really? wow... thats simple ^^ ty