Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7272

hidePlayer() with tablist controls

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3661-Spigot-19641c7-8434e36 (MC: 1.19.3) (Implementing API version 1.19.3-R0.1-SNAPSHOT)
    • Yes

      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.

            Unassigned Unassigned
            Photon Photon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: