Fixed formatting

This commit is contained in:
Auxilor
2022-02-09 13:15:16 +00:00
parent 9bcf07d940
commit a23c59dc61
2 changed files with 3 additions and 4 deletions

View File

@@ -45,9 +45,8 @@ abstract class Booster(
fun getActivationMessages(player: Player): List<String> {
val messages = mutableListOf<String>()
for (string in this.plugin.configYml.getStrings(
for (string in this.plugin.configYml.getFormattedStrings(
"messages.${this.id}.activation",
true,
StringUtils.FormatOption.WITHOUT_PLACEHOLDERS
)) {
messages.add(string.replace("%player%", player.displayName))
@@ -57,7 +56,7 @@ abstract class Booster(
}
fun getExpiryMessages(): List<String> {
return this.plugin.configYml.getStrings("messages.${this.id}.expiry")
return this.plugin.configYml.getFormattedStrings("messages.${this.id}.expiry")
}
}

View File

@@ -1,2 +1,2 @@
version = 1.3.1
version = 1.3.2
plugin-name = Boosters