diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandTop.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandTop.kt index a4611bd..8e772a5 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandTop.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/commands/CommandTop.kt @@ -6,7 +6,6 @@ import com.willfp.eco.core.command.impl.Subcommand import com.willfp.eco.util.StringUtils import com.willfp.ecoskills.data.LeaderboardHandler import com.willfp.ecoskills.getTotalSkillLevel -import org.bukkit.Bukkit import org.bukkit.OfflinePlayer import org.bukkit.command.CommandSender import org.bukkit.entity.Player @@ -70,9 +69,9 @@ class CommandTop(plugin: EcoPlugin) : name = player.displayName } - Bukkit.getLogger().info("${player.uniqueId} HAS NAME $name") + line = line.replace("%playername%", name) - line = line.replace("%player%", name) + line = StringUtils.format(line) lines.add(line) @@ -86,7 +85,7 @@ class CommandTop(plugin: EcoPlugin) : } for (message in messages) { - sender.sendMessage(StringUtils.format(message)) + sender.sendMessage(message) } } } diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 980ff4e..7efa32d 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -16,7 +16,7 @@ messages: line-wrap-color: "&8" -top-line-format: "%rank%. %player% - %level%" +top-line-format: "%rank%. %playername% - %level%" top: - "---- Skills Leaderboard ----" - "%lines%"