Vanish without tab desapearing

Discussion in 'Spigot Plugin Development' started by Totten98, Jul 25, 2018.

  1. Hello guys,
    I need a little bit of your help. I need to hide some player in the world (like a invisibility potion) but keep them showing up on the tab list.
    I tried the player#hidePlayer() function but it automatically hides the player form the tablist too.
    Do you guys have some ideas? Thanks.
  2. There are multiple ways of doing stuff, each having their advantages and disadvantages:
    - Despawn only the player entity for the client (aka letting them think the player is somewhere else that is not loaded for them). You have to do a lot of packets changing and stuff
    - Use the hide function and add a new "fake player" to the tab list. This is probably the easiest way
    - The are lots more ways to do this stuff...
    • Useful Useful x 1
  3. I had the same idea... Do you know how to add fake player to tablist?
    Thanks for the reply tho.
  4. What is wrong about the spectator mode?
    • Useful Useful x 1
    • Useful Useful x 1
  5. If I dosn't go wrong, when a player is in spectator mode is showed faded in the tablist, so it's still ambiguous
    I will check that out Thanks you!