Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value for unresolved tags #1064

Open
Galapen opened this issue Apr 15, 2024 · 0 comments
Open

Default value for unresolved tags #1064

Galapen opened this issue Apr 15, 2024 · 0 comments

Comments

@Galapen
Copy link

Galapen commented Apr 15, 2024

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>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants