Holographic Displays

Holographic Displays

3M Downloads

Math placeholderapi not working

Askarionn opened this issue ยท 6 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

https://imgur.com/a/f6gl6aZ

test:
lines:

  • Default hologram. Change it with &b/holo edit test
  • '%math_{bungee_lobby1}+{bungee_sz02}+{bungee_sz03}+{bungee_sz04}+{bungee_ss01}%'
  • '%bungee_lobby1%'
  • '%math_{bungee_lobby1}+{bungee_lobby1%%'
  • '%math_{bungee_lobby1}+{bungee_lobby1}%'
    position:
    world: world
    x: 13.74671894145164
    y: 20.2
    z: -140.592181791763

How to reproduce

  1. create hologram
  2. use a math placeholder

Server version

This server is running vanilla version git-NachoSpigot-"be07467" (MC: 1.8.8) (Implementing API version 1.8.8-R0.2-SNAPSHOT)

Holographic Displays version

HolographicDisplays version 3.0.0-SNAPSHOT

Installed plugins that allow players to join with multiple Minecraft versions

ViaVersion, ProtocolLib

Additional information

No response

commented

@Thin-Troll Yes it changed for all placeholders from PlaceholderAPI.

commented

what solution is there now for this problem?

commented

the "1" in hologram is the placeholder %bungee_lobby1%, so bungee placeholders and any other placeholders are working, i also do /papi parse me %math_{bungee_lobby1}+{bungee_sz02}+{bungee_sz03}+{bungee_sz04}+{bungee_ss01}% and the placeholder it's working (i tested in other plugins such as DeluxeMenus). The problem is only when i use it on HolographicDisplays

commented

The problem is the nested placeholder that uses the same delimiters as Holographic Displays ({ and }). I will need to either find a workaround or add escapes (\ before each nested delimiter), but it's not a pretty solution.

commented

I just added a solution in the latest build, you have to use the escape character \. A correct example would be
{papi: math_\{bungee_lobby1\}+\{bungee_lobby1\}}

commented

after that, papi stopped working, everything except math
output format changed for all placeholders?