Holographic Displays

Holographic Displays

3M Downloads

Holograms not parsing PAPI Placeholders when creating though API

apatuka opened this issue · 3 comments

commented

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 to the latest release for my particular Minecraft version.
  • I made sure the bug hasn't already been reported on the issue tracker.

Description

`
List lines = Arrays.asList("§e§lNEXO de {papi : denizen_<server.flag[nexus.clan."+args[1]+".name]> }", "§b§l{papi : denizen_<server.flag[nexus.clan."+args[1]+".hp]> }");

Location location = new Location(plugin.getInstance().getServer().getWorld(args[2]), Double.parseDouble(args[3]), Double.parseDouble(args[4]), Double.parseDouble(args[5]));

Hologram hologram = api.createHologram(location);

for(String line : lines) {
hologram.getLines().appendText(line);
}
`
Please check the picture:
2022-12-07_00 09 21

How to reproduce

Use the API

Server version

Paper version git-Paper-298 (MC: 1.19.2)

Holographic Displays version

HolographicDisplays version 3.0.0

Installed plugins that allow players to join with multiple Minecraft versions

No response

Additional information

No response

commented

Placeholders are not enabled by default when using the API. You have to use Hologram.setPlaceholderSetting

commented

There is also another error, you have to escape the inner curly braces (like this: { and }), otherwise the plugin will try to replace the innermost placeholder.

commented

Having this same issue on 1.19.3 using dev build #243 + purpur 1876 except I am using /holo create and having issues with API created holograms