From a23c59dc61ed067066f7efd75bd5a5fd87636366 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 9 Feb 2022 13:15:16 +0000 Subject: [PATCH] Fixed formatting --- .../src/main/kotlin/com/willfp/boosters/boosters/Booster.kt | 5 ++--- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt index 505843d..141d978 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/boosters/Booster.kt @@ -45,9 +45,8 @@ abstract class Booster( fun getActivationMessages(player: Player): List { val messages = mutableListOf() - 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 { - return this.plugin.configYml.getStrings("messages.${this.id}.expiry") + return this.plugin.configYml.getFormattedStrings("messages.${this.id}.expiry") } } diff --git a/gradle.properties b/gradle.properties index fdc5889..8ca4522 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 1.3.1 +version = 1.3.2 plugin-name = Boosters \ No newline at end of file