From 354e84f48e6d1f6a9527f55fc9c3fc81e61df4cb Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 17 Mar 2022 11:00:47 +0000 Subject: [PATCH] Fixed reward bug --- .../src/main/kotlin/com/willfp/ecocrates/reward/Reward.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecocrates/reward/Reward.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecocrates/reward/Reward.kt index ece17d6..377cbc2 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecocrates/reward/Reward.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecocrates/reward/Reward.kt @@ -22,6 +22,7 @@ class Reward( val display: ItemStack = ItemStackBuilder(Items.lookup(config.getString("display.item"))) .addLoreLines(config.getStrings("display.lore")) + .setDisplayName(config.getString("display.name")) .build() fun getWeight(player: Player) = config.getDoubleFromExpression("weight.actual", player)