Snapshot not parsing objective expansion for PlaceholdersAPI
mstaffa opened this issue ยท 3 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 to the latest release for my particular Minecraft version.
- I made sure the bug hasn't already been reported on the issue tracker.
Description
As the title states, the latest stable build of HolographicDisplays (version v3.0.0-SNAPSHOT) is not parsing the updated placeholders from the objectives expansion of PlaceholdersAPI.
The expected behavior is that the new syntax as outlined by the Spigot page will show the player name that has the highest score of the given dummy objective "temp".
The the following syntax "%objective_entryposhigh_{temp}_{1}%" should yield my player name at the top spot. Instead, it shows only the literal text of the placeholder and displays no errors on the screen or console.
How to reproduce
- Create a dummy scoreboard objective with
/scoreboard objectives add temp dummy
- Set my objective to "5" with
/scoreboard players set PlayerName temp 5
- Create a display with
/hd create HoloName
- Set the first line to a placeholder to display top entry with
/hd setline HoloName 1 %objective_entryposhigh_{temp}_{1}%
The display HoloName will have a first line that reads "%objective_entryposhigh_{temp}_{1}%" and does not display the data.
Server version
CraftBukkit version 3397-Spigot-f4ff00f-f3828bb (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
Holographic Displays version
HolographicDisplays version 3.0.0-SNAPSHOT
Installed plugins that allow players to join with multiple Minecraft versions
N/A
Additional information
The below screenshot shows a holographic display with 2 lines. The first is the result of a placeholder from the objectives expansion for a simple objective score.
The second line is a placeholder from the same expansion that is the subject of this issue.
The first and second lines are successfully parsed by the PlaceholderAPI as shown below.
The syntax should be now {papi: objective_entryposhigh_\{temp\}_\{1\}}
Please try it, keep the escapes (\
).
The syntax should be now
{papi: objective_entryposhigh_\{temp\}_\{1\}}
Please try it, keep the escapes (
\
).
I used it with AjParkour and worked. I recommend you update the wiki (documentation) please :)