ronaldburns / PlaceholderAPI

An advanced placeholder hub for the Sponge API
https://ore.spongepowered.org/rojo8399/PlaceholderAPI
MIT License
16 stars 15 forks source link

Allow applying own TextTemplate params #17

Closed randombyte-developer closed 7 years ago

randombyte-developer commented 7 years ago

There is Text replacePlaceholders(Player player, TextTemplate text) for TextTemplates. I would like to apply my own parameters additionally to the ones from PlayeholderAPI. How about a method that allows additional params to be passed to the TextTemplate. Or the PlaceholderAPI returns a map of the filled in params and values that the plugin using PAPI applies itself on the TextTemplate?

Wundero commented 7 years ago

I actually thought TextTemplate allowed you to add your own placeholders to it without building but I was mistaken. Version 3.8 will support both providing your own to PlaceholderAPI and getting what PlaceholderAPI would use for a template.