[SPIGOT-7272] hidePlayer() with tablist controls Created: 23/Feb/23  Updated: 21/Mar/25

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Photon Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Issue Links:
Duplicate
is duplicated by SPIGOT-7317 Player#hideEntity/Player#hidePlayer a... Resolved
is duplicated by SPIGOT-8019 A way to add a parameter to #Player.h... Closed
Version: This server is running CraftBukkit version 3661-Spigot-19641c7-8434e36 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Currently the hidePlayer API provides no options regarding the tablist. The current behaviour seems to hide the tablist entry, but there are instances where I want to hide the player only in game, not in the tablist, e.g. for lobbies. In other instances, hiding the tablist is desired, e.g. for vanish plugins. Therefore I suggest adding a way of controlling if a hidden player should also have their tablist hidden.

Ideas for that:

  • Adding a hidePlayer(plugin, player, boolean) method to specify the tablist status in the last argument and have the current hidePlayer(plugin, player) method call that with "true"
  • Adding a hidePlayer(plugin, player, enum hidemethod) method similar to the first idea to allow for additional hidemethods in the future, e.g. only equipment hiding.
  • Have new methods for tablist manipulation in general. This would also reduce the dependency on library plugins.


 Comments   
Comment by Giga Zelensky [ 03/Jan/25 ]

Yeah you guys should do this. Pretty helpful for many different reasons

Comment by Photon [ 19/Apr/24 ]

I think a viable alternative to a full Tablist API would be to add some sendTablistPlayerEntry() method or similar.
Right now I use hidePlayer() to hide the player and then I send a spoofed player entry packet with packetevents.
If the latter part would be part of the API similar to sendEquipmentChange(), one could replicate the tablist behavior just with the API.

Generated at Sat Dec 13 15:21:42 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.