MiniMOTD

MiniMOTD

5k Downloads

[Feature Request] Support for FabricPlaceholderAPI

forkiesassds opened this issue · 5 comments

commented

Is your feature request related to a problem? Please describe.
The only placeholders I can use right now are the player online and max player slot ones included with the mod.

Describe the solution you'd like
Support for FabricPlaceholderAPI would be awesome as there is a mod called Box of Placeholders that adds more placeholders to use with the mod

Describe alternatives you've considered
None.

Additional context
None, it's just a feature request to add support for a Fabric placeholder mod.

commented

I will quick bump/ping, as I could pr it (through it's 1 line of code for full support). But would you be interested in it @jpenilla?

commented

Hello @Patbox and @jpenilla, I would love to "revive" this request from @forkiesassds.
It's now over one year old - any update on this?
Would be awesome to have Placeholder integration 💖

commented

Checked the code and there is nothing new there. I can't do much unless jpenilla implements it

commented

Thank you. I hope @jpenilla finds time to look into that / is willing to implement it.

commented

Author of Placeholder API here! Checked the source and I can say adding basic support (only global/server variables, without per player ones) should be easy! You just need to wrap text from toNative call with PlaceholderAPI.parseText(text, server). Getting per player placeholders should still be possible, but it will require more trickery (that might not be worth it).