9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-01 21:36:34 +00:00

Fixed PAPI bug

This commit is contained in:
Auxilor
2021-08-23 19:14:20 +01:00
parent f57c29befc
commit d64ffe0ba4

View File

@@ -62,7 +62,7 @@ public class SkillGUI {
Function<Player, ItemStack> playerHeadItemBuilder = player -> {
ItemStack itemStack = new SkullBuilder()
.setDisplayName(plugin.getConfigYml().getString("gui.player-info.name").replace("%player%", player.getDisplayName()))
.setDisplayName(StringUtils.format(plugin.getConfigYml().getString("gui.player-info.name", false).replace("%player%", player.getDisplayName()), player))
.addLoreLines(() -> {
List<String> lore = new ArrayList<>();