When using VisibilityManager (not visible by default and showing to a player) the hologram text disapears but not the item
Redblock6YT opened this issue ยท 1 comments
Confirmation
- I have read the FAQ.
- I have tested the latest development build of Holographic Displays and the bug is still present.
- I have updated Spigot (and ProtocolLib if installed) to the latest release for my particular Minecraft version.
- I made sure the bug hasn't already been reported on the issue tracker.
Description
When you use the VisibilityManager and set invisible by default and show to a player with the Holographic Displays API:
`Hologram holo = HologramsAPI.createHologram(plugin, tutloc);
VisibilityManager visibilityManager = holo.getVisibilityManager();
visibilityManager.setVisibleByDefault(false);
visibilityManager.showTo(p);
holo.appendTextLine(translate("&4&lCLICK TO PLAY"));
holo.appendTextLine(translate("&fTour Guide"));
ItemStack holoitem = new ItemStack(Material.WOOL, 1, DyeColor.RED.getWoolData());
holo.appendItemLine(holoitem);`
The text will not appear to the other players, but the icons will:
First Player:
How to reproduce
- Using the Holographic Displays api, create a hologram that is not visible by default and has text and an item
- Show the hologram to 1 player
- Get 2 players on the same server, and you will see the icon on one of the player's screens
Server version
This server is running Paper version git-Paper-1618 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
Holographic Displays version
HolographicDisplays version 2.4.8
ProtocolLib version (if installed)
ProtocolLib version 4.7.0
Installed plugins that allow players to join with multiple Minecraft versions
ViaVersion, ViaBackwards, ViaRewind, ViaPotions
Additional information
No response