TextPlaceholderAPI icon indicating copy to clipboard operation
TextPlaceholderAPI copied to clipboard

Scoreboard objective-related placeholders always returns with ["Invalid Objective!"]

Open St1kee opened this issue 1 year ago • 1 comments

I was planning to use this placeholder for a Playtime TOP sidebar using your Styled Sidebars mod on my fabric server.

Every placeholder I've tried works fine, except the ones related to objectives:

%player:objective [objective]% %server:objective_name_top [objective] [position]% %server:objective_score_top [objective] [position]%

My most-likely-to-work attempt looks like this: "<dark_purple>4»</dark_purple> %server:objective_name_top [hc_playTime] [4]%"

I've tried to replace hc_playTime with other objectives, even ones that I just crated, and all of them return the same result ["Invalid Objective!"] {557DDA1E-F33C-44DA-873B-02C34F5A2BD9}

Same goes for all other objective-related placeholders.

Also took a look at your code regarding scoreboard objective placeholders, but I couldn't find the issue there... If this is a syntax issue, the documentation/wiki might need a refresher to be more straight-forward.

St1kee avatar Dec 29 '24 14:12 St1kee