joserodpt / RealScoreboard

Source-code for the RealScoreboard spigot plugin.
MIT License
20 stars 16 forks source link

Is there any way to connect my internal expansion of placeholder api? #71

Closed websorokinweb closed 5 months ago

websorokinweb commented 5 months ago

I created my own internal expansion of papi. I understand that it is not registered/connected within your real scoreboard plugin. But is there any way to do so?

joserodpt commented 5 months ago

What do you mean by internal expansion?

websorokinweb commented 5 months ago

https://wiki.placeholderapi.com/developers/creating-a-placeholderexpansion/#making-an-internal-expansion

They also have external expansion, but my placeholders would depend on my plugin state, so I chose internal

websorokinweb commented 5 months ago

@Override public @NotNull String getIdentifier() { return "ocm"; }

Sorry for bothering, it was issue with using placeholders. I tried to use them without my internal prefix like %demo% while I needed to use it with %ocm_demo%