Fix: Apply placeholder replacement when placeholder is not found (#272)
* Fix: Apply placeholder replacement when placeholder is not found
Previously, if a placeholder (e.g., %essentials_afk%) was not resolved
(i.e., had no current value), the system would not apply any specific
replacement rules defined for the placeholder string itself. This meant
that a configuration like:
placeholder_replacements:
'%essentials_afk%':
- placeholder: '%essentials_afk%'
replacement: "Not present"
would not result in "%essentials_afk%" being replaced by "Not present"
if the %essentials_afk% placeholder didn't resolve.
* use getOrDefault instead of only get
Optional dependencies
MiniPlaceholders
Any compatible version
PAPIProxyBridge
Any compatible version
LuckPerms
Any compatible version
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }