Similar to Apache Common's StringSubstitutor, it would be helpful to be able to define text that should be placed if a tag/placeholder doesn't exist.
StringSubstitutor uses the following syntax ${myVar:-Unknown} where "Unknown" would be substituted if myVar is unresolved. A similar syntax could be introduced into MiniMessage e.g. <fallback:other-tag:fallback-text:args-other>.
Similar to Apache Common's StringSubstitutor, it would be helpful to be able to define text that should be placed if a tag/placeholder doesn't exist.
StringSubstitutor uses the following syntax
${myVar:-Unknown}
where "Unknown" would be substituted ifmyVar
is unresolved. A similar syntax could be introduced into MiniMessage e.g.<fallback:other-tag:fallback-text:args-other>
.