Reparser Expansion¶
The Reparser Expansion allows to parse a provided String twive. This can be used for situation where a placeholder returns another placeholder.
Download expansion
/papi ecloud download reparser
Source Code¶
The Source of this expansion is available on Codeberg
Placeholders¶
Why this Expansion?¶
There are situations where a placeholder that gets parsed returns another placeholder. And unless the expansion also parses this text, or the plugin where this placeholder was used on, would it end up displaying an unparsed placeholder.
Reparser is simply parsing any placeholder in the provided text and then takes that parsed text and parses it a second time, now using the % syntax instead.
/// important
The provided placeholders need to be in the {} format, as it will otherwise cause errors when processing them.
As an example, %reparser_{luckperms_prefix}% is a valid syntax while %reparser_%luckperms_prefix%% is not.
///