Package dev.crafty.core.i18n
Class i18nManager.LocalizationQuery
java.lang.Object
dev.crafty.core.i18n.i18nManager.LocalizationQuery
- Enclosing class:
i18nManager
-
Method Summary
Modifier and TypeMethodDescriptionget()
placeholder
(String key, String value) Adds a placeholder to the localization query.player
(org.bukkit.entity.Player player) replacePlaceholders
(boolean replacePlaceholders) void
send()
-
Method Details
-
player
-
replacePlaceholders
-
orElse
-
placeholder
Adds a placeholder to the localization query. Placeholders are used to dynamically replace keys in the localized string with corresponding values.- Parameters:
key
- the placeholder key to be replaced in the localized stringvalue
- the value to replace the placeholder key with- Returns:
- the current
i18nManager.LocalizationQuery
instance for method chaining
-
get
-
send
public void send()
-